[lazarus] How to draw pixels ?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Oct 8 02:23:41 EDT 2001


On Mon, 08 Oct 2001 00:48:10 +0200
Marc Weustink <marc at dommelstein.net> wrote:

> 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 ?

(see TGtkObject.SetPixel in gtkobject.inc)
With gdk_image_put_pixel. The TColor is converted to a TGDKColor via gdk_colormap_alloc_color with gdk_colormap_get_system as the colormap.

Mattias






More information about the Lazarus mailing list