Retrieve image using ImageViewerControl

Hi,

we have plugin using ImageViewerControl to show stream from camera.

Is is possible to get raw image using ImageViewerControl and save as bitmap?

If not is there any other way to get raw image from ImageViewerControl ?

I think this will be it

-–

virtual Bitmap VideoOS.Platform.Client.ImageViewerControl.GetCurrentDisplayedImageAsBitmap ( ) [inline, virtual]

Get the latest displayed Image including the overlays and privacy mask.

Note that if no image has been received from the server, a null is returned.

Important: If the returned Bitmap is used in a UserControl, like a PictureBox, the control will hold to the original Bitmap. This can cause issues when the original source of the Bitmap attempts to dispose it.

Recommendation is to create another Bitmap directly upon calling this method, when passing it on to a PictureBox.

Bitmap bitmap = imageViewControl.GetCurrentDisplayedImageAsBitmap();

if (bitmap!=null)

{

myPictureBox.Image = newBitmap(bitmap, myPictureBox.Size()); // If you like to resize to picturebox size

bitmap.Dispose();

} else

{

// Clear the picturebox …

}

.

Returns:

A bitmap or null or no image is available.

--and–

virtual Bitmap VideoOS.Platform.Client.ImageViewerControl.GetCurrentDisplayedImageAsBitmap (bool digitalZoomOnly ) [inline, virtual]

Overloaded method to control if the original or the digital zoomed image is requested.

Returns:

-–