PDFiumPas 文件

DuotonePdfBitmap 程序

單元: PDFium
將已算繪點陣圖的亮度映射到呼叫端指定的深色和淺色之間

Syntax

procedure DuotonePdfBitmap(Bitmap: TBitmap; DarkColor, LightColor: TColor);

Parameters

BitmapTBitmap
DarkColorTColor
LightColorTColor

Description

此輔助函式會強制使用 pf32bit 並直接更新 ScanLine 像素,因此可在 RenderPage 或 ToBitmap 之後直接運作,不需要額外的暫存緩衝區

當讀者需要低視力色彩模式時,請在顯示、儲存或匯出算繪點陣圖之前先套用這些輔助函式

Remarks

Example

Bitmap := Pdf1.RenderPage(0, 0, Width, Height);
DuotonePdfBitmap(Bitmap, clBlack, $00D8E8FF);

See Also

RenderPage, RenderPage