Click or drag to resize

ICameraImageGetDisplayBitmapBytes 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: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
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