[lazarus] How to draw pixels ?

Marc Weustink marc at dommelstein.net
Sun Oct 7 18:20:35 EDT 2001


At 00:29 08-10-01 +0200, Mattias Gaertner wrote:
>On Sun, 7 Oct 2001 13:55:03 -0500
>"Shane Miller" <shane001 at ameritech.net> wrote:
>
> > I think I wote a function some time ago to convert to TColor.  Check 
> the gtk
> > files for a procedure ???ToTColor
>
>
>I found a TGDKColorToTColor function.
>A GDKColor consists of Pixel, Red, Green and Blue, so it is no problem to 
>convert this to TColor.
>But gdk_image_get_pixel returns a mere pixel index.
>How can we convert this to TColor?

Pffff... It was to long ago that I did something with GTK drawing. From 
what I remember there is a GTK/GDK finction to get the RGB values forn an 
index.

BTW how doe you set the pixel ?

Marc






More information about the Lazarus mailing list