Click or drag to resize

IMcGeometryPaste Method

Pastes a rectangular region of interest from an image to another.

Namespace:  MediaCy.IQL.Operations
Assembly:  MediaCy.IQL.Operations (in MediaCy.IQL.Operations.dll) Version: 10.0.6912.0
Syntax
VB
Function Paste ( 
	vSourceImg As Object,
	Optional leftDest As Integer = -1,
	Optional topDest As Integer = -1,
	Optional leftSrc As Integer = -1,
	Optional topSrc As Integer = -1,
	Optional rightSrc As Integer = -1,
	Optional bottomSrc As Integer = -1,
	<OptionalAttribute> vDestImg As Object
) As McImage

Parameters

vSourceImg
Type: SystemObject
Required source image or IMcRegionAccess instance. For a source image the VARIANT may hold the IMcImage instance, a string image name or numeric index for an Item in the Images collection. If given as an IMcRegionAccess instance, the source bounds arguments are ignored and the bounds of the supplied IMcRegionAccess are the source bounds.
leftDest (Optional)
Type: SystemInt32
X Optional coordinnate of destination ROI left upper corner. If negative or not given, the corresponding destination Aoi bound is used.
topDest (Optional)
Type: SystemInt32
Y coordinnate of destination ROI left upper corner. If negative or not given, the corresponding destination Aoi bound is used.
leftSrc (Optional)
Type: SystemInt32
Optional source ROI left upper corner x coordinnate If negative or not given, the corresponding SourceImg bound is used.
topSrc (Optional)
Type: SystemInt32
Optional source ROI left upper corner y coordinnate If negative or not given, the corresponding SourceImg bound is used.
rightSrc (Optional)
Type: SystemInt32
Optional source ROI left upper corner x coordinnate If negative or not given, the corresponding SourceImg bound is used.
bottomSrc (Optional)
Type: SystemInt32
Optional source ROI left upper corner x coordinnate If negative or not given, the corresponding SourceImg bound is used.
vDestImg (Optional)
Type: SystemObject
Optional destination image, operator applies to parent image when parameter is omitted.

Return Value

Type: McImage
The result McImage
Remarks
When destination ROI coordinnates are negative or omitted, the entire source image is pasted onto destination image. The paste is masked by the destination image's Aoi. Use the Blend method for a more general paste operation that can optionally mask by the source Aoi, and can also optionally replace the destination Aoi with the source image's Aoi.
See Also