Click or drag to resize
CameraImageGetDisplayBitmapBytes Method
Returns a display bitmap corresponding to the image array that has been set.

Namespace: ASCOM.Utilities.Video
Assembly: ASCOM.Utilities.Video (in ASCOM.Utilities.Video.dll) Version: 6.1.0.0 (6.3.0.2839)
Syntax
public byte[] GetDisplayBitmapBytes()

Return Value

Type: Byte
Returns a byte array of the byte content of the 24bit RBG bitmap. The byte array also contains all relevant bitmap headers.
Examples
The following code can be used to create a Bitmap from the returned byte array
using (var memStr = new MemoryStream(cameraImage.GetDisplayBitmapBytes()))
{
    bmp = (Bitmap)Image.FromStream(memStr);
}
See Also