Intrinsic-119 SetPixel

Intrinsic-119 SetPixel

Top  Previous  Next

119: SetPixel(Handle, X, Y, Red, Green, Blue);

 

This intrinsic sets one pixel in the bitmap specified by Handle. The pixel is at coordinates X,Y, and it is set to the colors specified by Red, Green, and Blue. The RGB values can be 0 to 255.  (EXPL supports special RGB modes that make them compatible with previous VGA color palettes and versions of XPL0.)

 

The routine is optimized for speed so it is nearly as fast as directly accessing an array of RGB values. (If you are setting pixels in Console (handle=-1), controlling Screen Refresh can speed up this intrinsic. See the Console Refresh section for more information.)