PDFium Component Docs

InvertPdfBitmap 프로시저

유닛: PDFium
렌더링된 32비트 TBitmap 의 RGB 채널을 제자리에서 반전해 다크 모드나 고대비 보기에 사용합니다

Syntax

procedure InvertPdfBitmap(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);
InvertPdfBitmap(Bitmap);

See Also

RenderPage, RenderPage