Click or drag to resize
CameraImageGetImageArray Method
Returns and image array and preview bitmap bytes in the format defined by IVideoFrame.

Namespace: ASCOM.Utilities.Video
Assembly: ASCOM.Utilities.Video (in ASCOM.Utilities.Video.dll) Version: 6.1.0.0 (6.3.0.2839)
Syntax
public Object GetImageArray(
	Bitmap bmp,
	SensorType sensorType,
	LumaConversionMode conversionMode,
	out byte[] bitmapBytes
)

Parameters

bmp
Type: System.DrawingBitmap
The bitmap image to use as a source.
sensorType
Type: ASCOM.DeviceInterfaceSensorType
The type of the sensor to emulate. Only Color and Monochrome sensors are supported.
conversionMode
Type: ASCOM.Utilities.VideoLumaConversionMode
When the specified SensorType is not a colour sensor, this is the mode to use to convert colour pixels to monochrome.
bitmapBytes
Type: SystemByte
The byte array of the corresponding preview bitmap.

Return Value

Type: Object
An array of int32 that represents the pixels of the bitmap.
Exceptions
ExceptionCondition
NotSupportedExceptionThrows this exception if the requested sentor type is not supported..
See Also