PDFium Delphi Component Docs

RenderPageProgressiveWithColorScheme メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
弱視読み上げのためにパスとテキストの色を上書きする、キャンセル可能なプログレッシブレンダーです

構文

function RenderPageProgressiveWithColorScheme(Bitmap: TBitmap; Left, Top, Width, Height: Integer; const AToken: IPdfCancellationToken; const ColorScheme: TPdfColorScheme; Rotation: TRotation = ro0; Options: TRenderOptions = []; Background: TColor = clWhite): TPdfProgressiveStatus;

BitmapTBitmap. Destination bitmap the caller creates and frees.
Left, TopInteger. Top-left offset within the bitmap where rendering begins, in pixels.
Width, HeightInteger. Size of the destination area in pixels.
ATokenIPdfCancellationToken. Polled between rendered chunks so a long render can be aborted mid-page. Pass nil to render to completion without pausing.
ColorSchemeTPdfColorScheme. Replacement colours: PathFillColor, PathStrokeColor, TextFillColor, TextStrokeColor.
RotationTRotation. Display rotation applied to the page.
OptionsTRenderOptions. Rendering flags.
BackgroundTColor. Colour the bitmap is filled with before rendering.
ResultTPdfProgressiveStatus. prsDone when the page finished, prsCancelled when the token stopped it and the bitmap holds partial work, prsFailed when PDFium reported a render failure.

説明

RenderPageProgressive のキャンセル対応ループを保持し、色上書きを追加するため、高コントラストや反転の読み上げモードがレンダリング済みピクセルを後処理する必要がありません

4 つの色はパス塗り、パス線、テキスト塗り、テキスト線に適用されます。画像は色替えされません。TPdfColorScheme.Default は呼び出し側がフィールドごとに調整できる中立的な開始点を返します

キャンセルされたレンダーは、これまでの作業を破棄せずにビットマップに残すため、ビューアはユーザーがスクロールを続ける間に部分的なページを表示できます

関連項目

RenderPageProgressive, RenderPage, RenderPageBanded