RasterFrame_ResizeΒΆ
imgDocRef | Text | The raster document reference. |
frameIdx | Longint | The index of the raster frame. |
pixelSize | Object | The new pixel size of the frame. |
dpiSize | Object | The new DPI size of the frame. |
oriented | Boolean | Whether pixelSize and dpiSize are expressed in the oriented or raw image coordinate space. |
Change the size of the raster frame by modifying its pixel side and/or resolution.
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 new pixel size is specified by the pixelSize
parameter, which is a SizeObj
object.
If pixelSize
is not equal to the current pixel size, the frame pixel map is resampled
to the new pixel size
by applying the “Scale” filter with appropriate horizontal and vertical scale factors.
The new resolution may be specified by dpiSize
, which is also a SizeObj
object
with its Width
and Height
properties representing
the new horizontal and vertical resolution, expressed in pixels per inch
. If dpiSize
is not equal to the current resolution, the “Resolution” filter is applied.
If this parameter is omitted or an undefined object, the current resolution is not affected.
Parameter oriented
specifies whether pixelSize
and dpiSize
be expressed in the oriented or in the raw image frame coordinate space.
Optional, default is True
.