CameraImage.GetDisplayBitmapBytes Method
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: (
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.
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