Click or drag to resize

IMcImage2CreateScaledAoi Method

Scale and optionally rotate and/or translate a McFeatures object in to a new one.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Function CreateScaledAoi ( 
	<OptionalAttribute> piunkSrcAoi As Object,
	<OptionalAttribute> SizeRatioXY As Object,
	<OptionalAttribute> DstOffset As Object,
	Optional AngleToRotate As Double = 0
) As Object

Parameters

piunkSrcAoi (Optional)
Type: SystemObject
SizeRatioXY (Optional)
Type: SystemObject
If given, can be either a scalar integral value or length-2 integral array giving the requested tiled sub-sampling of the image data for which scaling is to be done. If missing, a SizeRatio of 1 on each axis is used (i.e., no scaling).
DstOffset (Optional)
Type: SystemObject
If given, can be a LONGPOINT or length-2 integral array giving the offset. The offset is given in unscaled coordinates and is applied after any rotation by AngleToRotate.
AngleToRotate (Optional)
Type: SystemDouble
If non-zero, the angle scaled Aoi coordinates are rotated about the origin before applying any DstOffset.

Return Value

Type: Object
A McRegions (or McFeatures) object that is a duplicate of the SrcAoi, scaled by the inverse of the SizeRatioXY, rotated by AngleToRotate and translated by DstOffset.
Remarks
The formula applied to the source Aoi coordinates is: DstPoint = RotateByAngleToRotate( SrcPoint / SizeRatio) + DstOffset
See Also