PDFium Delphi Component Docs

DuotonePdfBitmap 프로시저

유닛: PDFium
렌더링된 비트맵 휘도를 호출자가 지정한 어두운 색과 밝은 색으로 제자리 매핑합니다

Syntax

procedure DuotonePdfBitmap(Bitmap: TBitmap; DarkColor, LightColor: TColor);

Parameters

BitmapTBitmap
DarkColorTColor
LightColorTColor

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);
DuotonePdfBitmap(Bitmap, clBlack, $00D8E8FF);

See Also

RenderPage, RenderPage