[lazarus] How to draw pixels ?

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Oct 7 18:01:49 EDT 2001


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?

Ideas?

Mattias Gaertner






More information about the Lazarus mailing list