FPDFText_GetFillColor method

int FPDFText_GetFillColor(
  1. FPDF_TEXTPAGE text_page,
  2. int index,
  3. Pointer<UnsignedInt> R,
  4. Pointer<UnsignedInt> G,
  5. Pointer<UnsignedInt> B,
  6. Pointer<UnsignedInt> A,
)

Experimental API. Function: FPDFText_GetFillColor Get the fill color of a particular character. Parameters: text_page - Handle to a text page information structure. Returned by FPDFText_LoadPage function. index - Zero-based index of the character. R - Pointer to an unsigned int number receiving the red value of the fill color. G - Pointer to an unsigned int number receiving the green value of the fill color. B - Pointer to an unsigned int number receiving the blue value of the fill color. A - Pointer to an unsigned int number receiving the alpha value of the fill color. Return value: Whether the call succeeded. If false, |R|, |G|, |B| and |A| are unchanged.

Implementation

int FPDFText_GetFillColor(FPDF_TEXTPAGE text_page,
int index,
ffi.Pointer<ffi.UnsignedInt> R,
ffi.Pointer<ffi.UnsignedInt> G,
ffi.Pointer<ffi.UnsignedInt> B,
ffi.Pointer<ffi.UnsignedInt> A,
) {
  return _FPDFText_GetFillColor(text_page,
index,
R,
G,
B,
A,
);
}