FPDFImageObj_GetImagePixelSize function

  1. @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, Pointer<UnsignedInt>, Pointer<UnsignedInt>)>(FPDF_PAGEOBJECT, ffi.Pointer<ffi.UnsignedInt>, ffi.Pointer<ffi.UnsignedInt>)>()
int FPDFImageObj_GetImagePixelSize(
  1. FPDF_PAGEOBJECT image_object,
  2. Pointer<UnsignedInt> width,
  3. Pointer<UnsignedInt> height
)

Experimental API. Get the image size in pixels. Faster method to get only image size.

image_object - handle to an image object. width - receives the image width in pixels; must not be NULL. height - receives the image height in pixels; must not be NULL.

Returns true if successful.

Implementation

@ffi.Native<
  FPDF_BOOL Function(
    FPDF_PAGEOBJECT,
    ffi.Pointer<ffi.UnsignedInt>,
    ffi.Pointer<ffi.UnsignedInt>,
  )
>()
external int FPDFImageObj_GetImagePixelSize(
  FPDF_PAGEOBJECT image_object,
  ffi.Pointer<ffi.UnsignedInt> width,
  ffi.Pointer<ffi.UnsignedInt> height,
);