PDFium Delphi Component Docs

RenderPageProgressiveWithColorScheme metode

Komponen: TPdf  ·  Unit: PDFium
Render progresif yang dapat dibatalkan dan mengganti warna jalur dan teks untuk pembacaan penglihatan rendah

Syntax

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.

Description

Mempertahankan loop yang sadar pembatalan dari RenderPageProgressive dan menambahkan penggantian warna, sehingga mode baca kontras tinggi atau terbalik tidak perlu memproses ulang piksel yang dirender

Empat warna berlaku untuk isian jalur, guratan jalur, isian teks, dan guratan teks; gambar tidak diwarnai ulang. TPdfColorScheme.Default mengembalikan titik awal netral yang dapat disesuaikan pemanggil field demi field

Render yang dibatalkan meninggalkan pekerjaan yang sudah dilakukan di bitmap alih-alih membuangnya, yang memungkinkan penampil menampilkan halaman parsial sementara pengguna terus menggulir

See Also

RenderPageProgressive, RenderPage, RenderPageBanded