RasterFrame_CropΒΆ
Crop a raster frame.
RasterFrame_Crop(imgDocRef; frameIdx; cropRect{; oriented})
imgDocRef | Text | The raster document reference. |
frameIdx | Longint | The index of the raster frame. |
cropRect | Object | The crop rectangle. |
oriented | Boolean | Whether cropRect is expressed in the oriented or raw image coordinate space. |
Crop the raster frame specified by 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 image frame.
The crop rectangle is specified by the cropRect
parameter, which is a RectObj
object
expressed in pixels
.
Note
This method is a convenience wrapper for the RasterFrame_PushFilter
method
that pushes the Crop
filter into the raster frame’s edit stack.