Click or drag to resize

ImageOperatorsToDotNetBitmap Method

Creates a System.Drawing.Bitmap from a McImage

Namespace:  MediaCy.IQL.Operators
Assembly:  MediaCy.IQL.Operators (in MediaCy.IQL.Operators.dll) Version: 3.1.0.0
Syntax
VB
<ExtensionAttribute>
Public Shared Function ToDotNetBitmap ( 
	image As McImage,
	Optional frame As Integer = -2,
	Optional overlays As Boolean = true,
	Optional maxWidth As Integer = 2048,
	Optional maxHeight As Integer = 2048
) As Bitmap

Parameters

image
Type: MediaCy.IQL.EngineMcImage
The McImage object to be converted.
frame (Optional)
Type: SystemInt32
overlays (Optional)
Type: SystemBoolean
maxWidth (Optional)
Type: SystemInt32
maxHeight (Optional)
Type: SystemInt32

Return Value

Type: Bitmap
null or the converted System.Drawing.Bitmap

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type McImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
image is not used after execution and it may be released.
See Also