PDFium Delphi Component Docs

RenderPage 메서드

컴포넌트: TPdfView  ·  유닛: PDFium
page의 contents를 device(screen, bitmap, printer)에 렌더링합니다

Syntax

procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);

DeviceContextHDC. 렌더링할 대상 디바이스 컨텍스트입니다(화면 DC, 프린터 DC, 메모리 DC 등)
RotationTRotation. 렌더링 때 적용할 시계 방향 회전입니다. ro0, ro90, ro180, ro270
OptionsTRenderOptions. 주석 표시, LCD 텍스트, 그레이스케일 등을 제어하는 렌더링 플래그 집합입니다

 

function RenderPage(Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []): TBitmap;

RotationTRotation. 렌더링 때 적용할 시계 방향 회전입니다
OptionsTRenderOptions. 렌더링 플래그 집합입니다

 

procedure RenderPage(Bitmap: TBitmap; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);

BitmapTBitmap. 페이지를 렌더링할 기존 비트맵입니다
RotationTRotation. 렌더링 때 적용할 시계 방향 회전입니다
OptionsTRenderOptions. 렌더링 플래그 집합입니다

Description

현재 페이지를 지정한 위치와 크기로 지정한 대상에 렌더링합니다. 오버로드는 세 가지입니다

배경 채우기 색은 PageColor에서 가져옵니다. 타일 방식의 고해상도 렌더링은 RenderTile을 사용하세요

Example

// Render current page to a 600x800 bitmap
var Bmp: TBitmap;
begin
  Bmp := PdfView.RenderPage(0, 0, 600, 800);
  try
    Bmp.SaveToFile('page.bmp');
  finally
    Bmp.Free;
  end;
end;

See Also

TPdfView.RenderTile, TPdfView.Zoom, TPdfView.PageRotation, TPdfView.PageColor