RenderPageToMemory

Renderização e impressão

Descrição

Renderiza uma página em um buffer de memória de bitmap fornecido pelo chamador quando o renderer PDFium está selecionado

Sintaxe

Delphi

Function TPDFlib.RenderPageToMemory(DPI: Double; Page: Integer; Target: Pointer; Width, Height, BitsPerPixel: Integer): Integer;

Parâmetros

DPIRequested rendering resolution before the current render scale is applied.
Page1-based page number. Values outside the document range are clamped to the nearest valid page.
TargetPointer to the destination pixel buffer supplied by the caller.
WidthDestination bitmap width in pixels.
HeightDestination bitmap height in pixels.
BitsPerPixelPixel format depth. Only 24 and 32 are accepted.

Valores retornados

Retorna 1 quando o PDFium renderiza no buffer Retorna 0 para profundidades de bits não suportadas, quando o Cairo está selecionado, quando o PDFium não está disponível ou quando a renderização falha

Observações

SelectRenderer(3) precisa estar ativo O Cairo não suporta esse caminho de renderização em memória

Veja também

SetPDFiumFileName, SelectRenderer, PDFiumRendering