function FPDF_ARGB(a, r, g, b: Byte): LongWord;
function FPDF_GetBValue(argb: LongWord): Byte;
function FPDF_GetGValue(argb: LongWord): Byte;
function FPDF_GetRValue(argb: LongWord): Byte;
function FPDF_GetAValue(argb: LongWord): Byte;
FPdfEdit is primarily a translation of the PDFium fpdf_edit.h C header: it declares the function-pointer types and constants for page-object creation, transformation, and property queries that PDFium.pas binds at runtime. Those bindings are not called directly by applications
The unit also exposes five standalone color helper functions that mirror the Win32 RGB and PDFium ARGB macros. They pack four byte channels into a single 32-bit value and unpack individual channels back out, and are genuinely user-callable when working with PDFium color parameters such as FPDFPageObj_SetFillColor
| Function | Description |
|---|---|
FPDF_ARGB | Packs alpha, red, green, and blue bytes into a 32-bit ARGB color value |
FPDF_GetBValue | Extracts the blue byte from a 32-bit ARGB color value |
FPDF_GetGValue | Extracts the green byte from a 32-bit ARGB color value |
FPDF_GetRValue | Extracts the red byte from a 32-bit ARGB color value |
FPDF_GetAValue | Extracts the alpha byte from a 32-bit ARGB color value |
cdecl function-pointer type aliases and constants for the PDFium page-object API; applications reach that functionality through the TPdf object and property surface rather than calling the bindings directly