[Lazarus] Mac Drawing

Daithi Haxton dhaxton at audiovox.com
Sat Sep 18 14:28:23 CEST 2010

On Sep 18, 2010, at 2:45 AM, Felipe Monteiro de Carvalho wrote:

> I would do it like this:
> 1> Work with a bitmap canvas instead of the image canvas
> 2> Draw your image to the bitmap
> 3> Convert the bitmap to a TLazIntfImage
> 4> It should now be trivial to build an image inversion function, you
> can just create a loop to read and change the pixels
> 5> Convert the TLazIntfImage back to the bitmap
> 6> Draw the bitmap in the image canvas
> More info here:
> http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Working_with_TLazIntfImage
> --  
> Felipe Monteiro de Carvalho

Thanks for the tip, Felipe - I will give it a try over the weekend.  
I'm a bit concerned about the looping, though, as this is a more or  
less real time display of a waveform ... <sigh> ... lots of pixels...

Be well,
Dave H.

More information about the Lazarus mailing list