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