IMcAlignmentAffineTransform Method
|
|
Transforms the image using rotation, scale and translation.
Namespace:
MediaCy.IQL.Align
Assembly:
MediaCy.IQL.Align (in MediaCy.IQL.Align.dll) Version: 10.0.6912.0
SyntaxFunction AffineTransform (
Optional dx As Double = 0,
Optional dy As Double = 0,
Optional angle As Double = 0,
Optional scale As Double = 1,
Optional Flags As mcImageCreateFlags = mcImageCreateFlags.mcicfDefault,
<OptionalAttribute> vSourceImg As Object
) As McImage
Parameters
- dx (Optional)
- Type: SystemDouble
shift in horizontal direction (default 0) - dy (Optional)
- Type: SystemDouble
shift in vertical direction (default 0) - angle (Optional)
- Type: SystemDouble
rotation angle counterclockwise in radians (default 0) - scale (Optional)
- Type: SystemDouble
scaling factor (default 1) - Flags (Optional)
- Type: MediaCy.IQL.EnginemcImageCreateFlags
image creation flags - vSourceImg (Optional)
- Type: SystemObject
optional source image
Return Value
Type:
McImage
RemarksThe function can be used as a helper function for alignment.
The same results can be achieved using alignment functions.
Examples
ThisApplication.ActiveImage.Alignment.AffineTransform 20, 40, 30 * 3.14 / 180, 0.5
See Also