PDFium Component Docs

GrayscalePdfBitmap procedure

Unit: PDFium
Mengubah TBitmap 32-bit hasil render menjadi grayscale luminansi secara langsung

Syntax

procedure GrayscalePdfBitmap(Bitmap: TBitmap);

Parameters

BitmapTBitmap

Description

Helper ini memaksa pf32bit dan memperbarui piksel ScanLine secara langsung, sehingga bekerja setelah RenderPage atau ToBitmap tanpa buffer staging tambahan

Gunakan helper ini sebelum menampilkan, menyimpan, atau mengekspor bitmap hasil render ketika pembaca memerlukan mode warna penglihatan rendah

Remarks

Example

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

See Also

RenderPage, RenderPage