FPDFPageObj_GetRotatedBounds method
int
FPDFPageObj_GetRotatedBounds(
- FPDF_PAGEOBJECT page_object,
- Pointer<
FS_QUADPOINTSF> quad_points
Experimental API. Get the quad points that bounds |page_object|.
page_object - handle to a page object. quad_points - pointer where the quadrilateral points will be stored.
On success, returns TRUE and fills in |quad_points|.
Similar to FPDFPageObj_GetBounds(), this returns the bounds of a page object. When the object is rotated by a non-multiple of 90 degrees, this API returns a tighter bound that cannot be represented with just the 4 sides of a rectangle.
Currently only works the following |page_object| types: FPDF_PAGEOBJ_TEXT and FPDF_PAGEOBJ_IMAGE.
Implementation
int FPDFPageObj_GetRotatedBounds(
FPDF_PAGEOBJECT page_object,
ffi.Pointer<FS_QUADPOINTSF> quad_points,
) {
return _FPDFPageObj_GetRotatedBounds(page_object, quad_points);
}