Click or drag to resize

McImageUtilsMcDisplayToBitmap Method (McDisplay, Boolean, Boolean, Int32)

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,
	size As Integer
) 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.
size
Type: SystemInt32
If size > 0 then resize image to specified size, otherwise current display size.

Return Value

Type: Image
Remarks