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.1.1.2619)

Syntax

C#
public Object GetImageArray(
	Bitmap bmp,
	SensorType sensorType,
	LumaConversionMode conversionMode,
	out byte[] bitmapBytes
)
Visual Basic
Public Function GetImageArray ( _
	bmp As Bitmap, _
	sensorType As SensorType, _
	conversionMode As LumaConversionMode, _
	<OutAttribute> ByRef bitmapBytes As Byte() _
) As Object
Visual C++
public:
Object^ GetImageArray(
	Bitmap^ bmp, 
	SensorType sensorType, 
	LumaConversionMode conversionMode, 
	[OutAttribute] array<unsigned char>^% bitmapBytes
)

Parameters

bmp
Type: System.Drawing..::..Bitmap
The bitmap image to use as a source.
sensorType
Type: ASCOM.DeviceInterface..::..SensorType
The type of the sensor to emulate. Only Color and Monochrome sensors are supported.
conversionMode
Type: ASCOM.Utilities.Video..::..LumaConversionMode
When the specified SensorType is not a colour sensor, this is the mode to use to convert colour pixels to monochrome.
bitmapBytes
Type: array<System..::..Byte>[]()[][]%
The byte array of the corresponding preview bitmap.

Return Value

An array of int32 that represents the pixels of the bitmap.

Exceptions

ExceptionCondition
System..::..NotSupportedExceptionThrows this exception if the requested sentor type is not supported..

See Also