RasterFrame_GetDPISize¶
Return the resolution of a raster frame.
RasterFrame_GetDPISize(imgDocRef{; frameIdx{; oriented}}) ➔ dpiSize
imgDocRef | Text | The raster document reference. |
frameIdx | Longint | The index of the raster frame. |
oriented | Boolean | Return the DPI size in the oriented image coordinate space. |
dpiSize | Object | The image frame’s DPI size in pixels per inch . |
Return the resolution of the raster frame specified by imgDocRef
and frameIdx
Parameter imgDocRef
is the raster document reference. If imgDocRef
refers
to a PDF document, an undefined 4D object is returned.
Parameter frameIdx
is the index of the image frame. Passing 0
or omitting this
parameter is the same as passing 1.
The optional oriented
parameter specified whether to return the frame’s resolution
in the oriented or raw image coordinate space. The default value is True
.
The raster frame’s resolution is returned in dpiSize
as a SizeObj
object.
The Width
and Height
properties of dpiSize
are expressed in
pixels per inch
and represent the horizontal and vertical resolution respectively.