byte[] PreviewBitmap { get; }ReadOnly Property PreviewBitmap As Byte()
GetMust be implemented, must not throw an ASCOM.NotImplementedException.
The application can use this bitmap to show a preview image of the last video frame when required. This is a convenience property for those applications that don't require to process the ImageArray but usually only adjust the video camera settings and then record a video file.When a 24bit RGB image can be returned by the driver this should be the preferred format.
1 2 3 4
using (var memStr = new MemoryStream(frame.PreviewBitmap))
{
bmp = (Bitmap)Image.FromStream(memStr);
}1 2 3
Using memStr = New MemoryStream(frame.PreviewBitmap)
bmp = DirectCast(Image.FromStream(memStr), Bitmap)
End Using