Description: This function returns the color of a pixel in the window.
Returns: Numeric
Usage: Script or Steady State
Format: PixelColor(Object, X,Y)
Parameters: Object { Object value } { required } { no default: }
Any expression which returns an object value. This identifies the window where the pixel is drawn.
X { numeric } { required } { no default: }
Any numeric expression, giving the x-axis coordinate of the location of the pixel.
Y { numeric } { required } { no default: }
Any numeric expression, giving the y-axis coordinate of the location of the pixel.
Comments: Location (x, y) is taken to be in the window where the module instance identified by Object is drawn.
Example:
mouseColor = PixelColor(Self(),XLoc(),YLoc());
This finds the color under the mouse in the window where this function is defined.
See Also: