Returns the value of a single pixel from the image array of a Monochrome sensor.

Namespace: ASCOM.Utilities.Video
Assembly: ASCOM.Utilities.Video (in ASCOM.Utilities.Video.dll) Version: 6.1.0.0 (6.1.1.2619)

Syntax

C#
public int GetPixel(
	int x,
	int y
)
Visual Basic
Public Function GetPixel ( _
	x As Integer, _
	y As Integer _
) As Integer
Visual C++
public:
virtual int GetPixel(
	int x, 
	int y
) sealed

Parameters

x
Type: System..::..Int32
The X coordinate of the pixel starting from left.
y
Type: System..::..Int32
The Y coordinate of the pixel starting from top.

Return Value

The value of the specified pixel.

Implements

ICameraImage..::..GetPixel(Int32, Int32)

Exceptions

ExceptionCondition
ASCOM..::..InvalidOperationExceptionThrows this exception if the image array data hasn't been set ot is not corresponding to a Monochrome sensor.

See Also