Intrinsic-120 GetPixel

Top  Previous  Next

120: GetPixel(Handle, X, Y, @Red, @Green, @Blue);


This intrinsic gets the color of a pixel in the bitmap specified by Handle. The pixel is at coordinates X,Y, and the colors are returned in Red, Green, and Blue.  Note that the RGB variables must be passed as pointers using the "addr" or "@" operator. The routine is optimized for speed so it is nearly as fast as directly accessing an array of RGB values.