Point()

Syntax

Color = Point(x, y)
Description
Return the color of a pixel in the current output.

Parameters

x, y The location of the pixel in the output.

For performance reasons there are no bounds checks performed on these coordinates, the specified coordinates must be inside the current drawing area. OutputWidth() and OutputHeight() can be used to verify that. This command is also not affected by calls to ClipOutput().

Return value

Returns the color of the specified pixel.

This color will only contain alpha information if the output has a 32-bit color depth and the current DrawingMode() is set to one of the alpha channel modes. Otherwise the alpha component of the color is set to 0.

Remarks

This command does not work with PrinterOutput().

See Also

Plot(), Red(), Green(), Blue(), Alpha()

Supported OS

All

<- Plot() - 2DDrawing Index - RGB() ->