RasterFrame_SetOrientationΒΆ
Change the orientation of a raster frame.
RasterFrame_SetOrientation(imgDocRef; frameIdx; orientation)
imgDocRef | Text | The raster document reference. |
frameIdx | Longint | The index of the raster frame. |
orientation | Longint | The raster frame’s orientation. |
Change the orientation property of the raster frame specified with imgDocRef
and frameIdx
.
Parameter imgDocRef
is the raster document reference. If imgDocRef
refers
to a PDF document, this method does nothing.
Parameter frameIdx
is the index of the raster frame.
The frame’s orientation is specified by orientation
and must be set to a value defined
by the “Image Orientation” constants. Passing an invalid value will set the Q2Pix error info
to "POSIX"
/kPOSIXErrInval
.
Note
This method is a convenience wrapper for the RasterFrame_PushFilter
method
that pushes the Orientation
filter into the raster frame’s edit stack.