Warning: This site is under construction, most links will be broken.
LightX API -> lxgfx -> putpixel
Last modified on Thu, 29th Mar 2007 at 17:26 UTC by zippletlxgfx.putpixel
procedure putpixel(
surface: tlxhandle;
x, y: tlxposition;
colour: tlxcolour32
);
Plot a pixel of a given colour on a surface.
If you will be plotting a lot of pixels, consider locking the surface and directly manipulating it's image buffer instead. Calling putpixel repeatedly is very slow since it must lock and unlock the surface for every pixel plotted and there is the overhead of one function call per pixel too.
surface: tlxhandle
The surface to draw on.
x, y: tlxposition
The X,Y co-ordinates to plot at.
colour: tlxcolour32
The colour of the new pixel.
Class: lxgfx