PDFium Delphi Component 文件

FPdfEdit 單元

單元: FPdfEdit
PDFium 頁面物件編輯繫結,加上打包與拆解 32 位元 PDFium 色彩值的獨立 ARGB 色彩輔助函式

Syntax

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;

Description

FPdfEdit 主要是 PDFium fpdf_edit.h C 標頭的轉譯:它宣告 PDFium.pas 在執行期繫結之頁面物件建立、變換與屬性查詢的函式指標型別與常數。應用程式不會直接呼叫這些繫結

此單元另公開五個對應 Win32 RGB 與 PDFium ARGB 巨集的獨立色彩輔助函式。它們將四個位元組通道打包成單一 32 位元值,也可拆解出個別通道;在使用 FPDFPageObj_SetFillColor 等 PDFium 色彩參數時確實可供使用者呼叫

Functions

FunctionDescription
FPDF_ARGB將 alpha、紅、綠、藍位元組打包為 32 位元 ARGB 色彩值
FPDF_GetBValue從 32 位元 ARGB 色彩值取出藍色位元組
FPDF_GetGValue從 32 位元 ARGB 色彩值取出綠色位元組
FPDF_GetRValue從 32 位元 ARGB 色彩值取出紅色位元組
FPDF_GetAValue從 32 位元 ARGB 色彩值取出 alpha 位元組

Remarks

See Also

TPdf.ObjectType, TPdf.Text