PDFium Component Docs

GrayscalePdfBitmap-proseduuri

Unit: PDFium
Muuttaa piirretyn 32-bittisen TBitmapin luminanssin harmaasävyksi paikan päällä

Syntax

procedure GrayscalePdfBitmap(Bitmap: TBitmap);

Parameters

BitmapTBitmap

Description

The helper forces pf32bit and updates ScanLine pixels directly, so it works after RenderPage or ToBitmap without an extra staging buffer

Use these helpers before displaying, saving, or exporting the rendered bitmap when the reader needs a low-vision colour mode

Remarks

Example

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

See Also

RenderPage, RenderPage