I have subclassed ExtCtrls.TPaintBox
with several help functions and overridden the Paint
method. I can add a TPaintBox
to a form which then acts as my custom paintbox object and draws the desired output.
Now I want to draw (write) the contents of my paintbox to a file, but with different dimensions; e.g. inside the UI of my application the paintbox has size 150x600 (width x height), but when drawing to the file, I need it to be larger.
I want to be able to reuse my drawing code (= TPaintBox.Paint
) and virtually draw it to an object
and then save that object to a file.
I'm already able to export it, but resizing on export makes the image look like you would enlarge it with paint.