Description

Creates a new reoriented image by changing the orientation of the Aoi of an image.

Return Type

A McImage object.  

A new McImage.

Syntax

object.Orient (Type, [Flags], [vSourceImg])

The Orient Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McGeometry.
TypeRequired. A mcOrientType enumeration, as described in settings.

New orientation.

lFlags

Optional image creation flags for the new image. By default the value is zero, which creates a visible image that is part of the Images collection. See mcImageCreateFlags for the list of supported flags.

FlagsOptional. A mcImageCreateFlags enumeration, as described in settings.
vSourceImgOptional. A Variant value.

Optional source image, operator applies to parent image when parameter is omitted.

Settings

The settings for Type are:

ConstantValueDescription
 mcotLeftRight1

Swap left and right sides of the image.

 mcotUpDown2

Swap top and bottom sides of the image.

 mcotTranspose3

Swap lower left and upper right sides.

 mcotRotate904

Rotate the image 90 degrees counter-clockwise.

 mcotRotate2705

Rotate the image 90 degrees clockwise.

 mcotRotate1806

Rotate the image 90 degrees counter-clockwise.

The settings for Flags are:

ConstantValueDescription
 mcicfDefault0
 mcicfContiguous1

If set, frames are allocated contiguously, and you cannot add to the FrameCount at a later time.

 mcicfNoInit2

Default is to initialize to 0 (black), this flag suppresses initialization.

 mcicfNoAddToCollection4

If set, the image is created, but not added to the collection (see Notes).

 mcicfNotVisible8

If set, the image is created, possibly added to collection (see above), but not made visible.

 mcipfNoImportProperties8388608

Suppress ImportProperties for functions creating an image from another.