PDFium Delphi Component 文件

GrayscalePdfBitmap 程序

單元: PDFium
原地將已算繪 32 位元 TBitmap 轉為亮度灰階

Syntax

procedure GrayscalePdfBitmap(Bitmap: TBitmap);

Parameters

BitmapTBitmap

Description

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

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

Remarks

Example

Bitmap := Pdf1.RenderPage(0, 0, Width, Height);
GrayscalePdfBitmap(Bitmap);

See Also

RenderPage, RenderPage