Click or drag to resize
CameraImageGetPixel Method (Int32, Int32, Int32)
Returns the value of a single pixel from the image array of a Colour sensor.

Namespace: ASCOM.Utilities.Video
Assembly: ASCOM.Utilities.Video (in ASCOM.Utilities.Video.dll) Version: 6.1.0.0 (6.2.0.2774)
Syntax
public int GetPixel(
	int x,
	int y,
	int plane
)

Parameters

x
Type: SystemInt32
The X coordinate of the pixel starting from left.
y
Type: SystemInt32
The Y coordinate of the pixel starting from top.
plane
Type: SystemInt32
The colour plane from which the pixel needs to be returned.

Return Value

Type: Int32
The value of the specified pixel.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrows this exception if the image array data hasn't been set ot is not corresponding to a Colour sensor.
See Also