Click or drag to resize

IMcGeometryCut Method

Construct a new McImage from a rectangular region of interest.

Namespace:  MediaCy.IQL.Operations
Assembly:  MediaCy.IQL.Operations (in MediaCy.IQL.Operations.dll) Version: 10.0.6912.0
Syntax
VB
Function Cut ( 
	left As Integer,
	top As Integer,
	right As Integer,
	bottom As Integer,
	Optional Flags As mcImageCreateFlags = mcImageCreateFlags.mcicfDefault,
	<OptionalAttribute> vSourceImg As Object
) As McImage

Parameters

left
Type: SystemInt32
ROI left upper corner x coordinnate
top
Type: SystemInt32
ROI left upper corner y coordinnate
right
Type: SystemInt32
ROI bottom right corner x coordinnate
bottom
Type: SystemInt32
ROI bottom right corner y coordinnate
Flags (Optional)
Type: MediaCy.IQL.EnginemcImageCreateFlags
vSourceImg (Optional)
Type: SystemObject
Optional source image, operator applies to parent image when parameter is omitted.

Return Value

Type: McImage
The newly created IMcImage.
Remarks
The new image has the same type as the source image, and the same number of frames as the currently selected active frame range. The new image never has an Aoi.
Note Note
The McImage CopyToNewImage method is a much more flexible routine that can also be used to create a new image from a portion of a source image. In addition to other features, CopyToNewImage allows you to name the new image optionally copy the Aoi and/or mask by it.
See Also