WritePixel

Top  Previous  Next

Syntax

WritePixel(x as INT,y as INT,col as UINT,OPT buffer as POINTER)

Description

Sets one pixel on the buffer to the color or color index specified.

Parameters

x, y - Coordinates of pixel to set.

col - RGB color or color index to set pixel.

buffer - Optional. Can be one of BACKBUFFER (default), FRONTBUFFER or SPRITEBUFFER.

Return value

None

Remarks

See Also: WriteAlphaPixel, WritePixelFast

Example usage

WritePixel 100,100, RGB(155,0,255)