RasterFrame_ScaleΒΆ

Scale the pixel map of a raster frame.
RasterFrame_Scale(imgDocRef; frameIdx; scaleX{; scaleY{; oriented}})
imgDocRef Text The raster document reference.
frameIdx Longint The index of the raster frame.
scaleX Real The horizontal scale factor.
scaleY Real The vertical scale factor.
oriented Boolean Whether scaleX and scaleY are expressed in the oriented or raw image coordinate space.

Scale the pixel map of the raster frame specified by imgDocRef and frameIdx.

High quality raster scaling is achieved by using the Lanczos Core Image filter on macOS, and the Scale Direct2D effect with high quality bicubic interpolation on Windows.

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 horizontal and vertical scale factors are specified by the scaleX and scaleY parameters respectively. If scaleY is omitted, it takes the value of scaleX.

Parameter oriented specifies whether the scaleX and scaleY factors be expressed in the oriented or in the raw image frame coordinate space. Optional, default is True.

Note

This method is a convenience wrapper for the RasterFrame_PushFilter method that pushes the Scale filter into the raster frame’s edit stack.