PDFium Delphi Component Docs

GrayscalePdfBitmap 程序

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

語法

procedure GrayscalePdfBitmap(Bitmap: TBitmap);

參數

BitmapTBitmap

說明

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

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

備註

範例

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

另請參閱

RenderPage, RenderPage