Click or drag to resize

McImageUtilsMcDisplayToBitmap Method (McDisplay, Boolean, Boolean)

Create Drawing.Image from McDisplay (avoid using obsolete Microsoft.VisualBasic.Compatibility.VB6.IPictureToImage function)

Namespace:  MediaCy.Controls.Common.Vb
Assembly:  MediaCy.Controls.Common.Vb (in MediaCy.Controls.Common.Vb.dll) Version: 3.1.0.0
Syntax
VB
Public Shared Function McDisplayToBitmap ( 
	display As McDisplay,
	cutByImageBounds As Boolean,
	entireImage As Boolean
) As Image

Parameters

display
Type: MediaCy.IQL.Display.ViewerMcDisplay
Source of the image.
cutByImageBounds
Type: SystemBoolean
If True then cut empty areas.
entireImage
Type: SystemBoolean
If True then auto fit to see entire image, otherwise at current zoom.

Return Value

Type: Image
Remarks