[Lazarus] TImage - Getting image properties in 'canvas space'

Reimar Grabowski reimgrab at web.de
Tue Apr 17 16:31:53 CEST 2012


On Tue, 17 Apr 2012 12:27:09 +0200
Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Tue, 17 Apr 2012 12:12:21 +0200
> Marc Weustink <marc.weustink at cuperus.nl> wrote:

> > TImage is not meant to draw to. If you want to custom paint your image, 
> > use a TPaintbox
> > 
> > A TImage is for display only.
> 
> TImage has a published OnPaint event. Painting some overlays makes
> sense. And for this you need to know where the image is on the canvas.
This.
And to me it looks like this method is officially supported by Lazarus
as you can see here:
http://wiki.freepascal.org/Developing_with_Graphics#Painting_on_the_volatile_visual_area_of_the_TImage

R.




More information about the Lazarus mailing list