ArkoPDF
← SDK API リファレンス

ipdf_render.h

渲染:渲染上下文、渐进式渲染、显示设备与渲染选项常量。

インターフェースの説明はヘッダーの英語原文のままにしています。読んでいるコードと突き合わせやすくするためです。

定数

シグネチャValueDescription
PDSDK_RENDER_COLOR_NORMAL0—
PDSDK_RENDER_COLOR_GRAY1—
PDSDK_RENDER_COLOR_TWOCOLOR2—
PDSDK_RENDER_COLOR_ALPHA3—
PDSDK_RENDER_CLEARTYPE0x00000001—
PDSDK_RENDER_PRINTGRAPHICTEXT0x00000002—
PDSDK_RENDER_FORCE_DOWNSAMPLE0x00000004—
PDSDK_RENDER_PRINTPREVIEW0x00000008—
PDSDK_RENDER_BGR_STRIPE0x00000010—
PDSDK_RENDER_NO_NATIVETEXT0x00000020—
PDSDK_RENDER_FORCE_HALFTONE0x00000040—
PDSDK_RENDER_RECT_AA0x00000080—
PDSDK_RENDER_FILL_FULLCOVER0x00000100—
PDSDK_RENDER_PRINTIMAGETEXT0x00000200—
PDSDK_RENDER_OVERPRINT0x00000400—
PDSDK_RENDER_THINLINE0x00000800—
PDSDK_RENDER_NOTEXTSMOOTH0x10000000—
PDSDK_RENDER_NOPATHSMOOTH0x20000000—
PDSDK_RENDER_NOIMAGESMOOTH0x40000000—
PDSDK_RENDER_LIMITEDIMAGECACHE0x80000000—
PDSDK_DASHPATTERN_NONE0solid
PDSDK_DASHPATTERN_3_013 units on, 3 units off, ...
PDSDK_DASHPATTERN_2_121 on, 2 off, 2 on, 2 off
PDSDK_DASHPATTERN_2_1_032 on, 1 off, 2 on, 1 off
PDSDK_DASHPATTERN_3_5_642 off, 3 on, 5 off, 3 on, 5 off
PDSDK_DASHPATTERN_2_3_1151 on, 3 off, 2 on, 3 off, 2 on
PDSDK_DASHPATTERN_66—
PDSDK_PT_CLOSEFIGURE0x01Specifies that the figure is automatically closed after the #PDSDK_PT_LINETO or #PDSDK_PT_BEZIERTO type for this point is done. A line is drawn from this point to the most recent #SDKPT_MOVETO point.
PDSDK_PT_LINETO0x02Specifies that a line is to be drawn from the current position to this point, which then becomes the new current position.
PDSDK_PT_BEZIERTO0x04Specifies that this point is a control point or ending point for a B��zier spline.
PDSDK_PT_MOVETO0x06Specifies that this point starts a figure. This point becomes the new current position.
PDSDK_PT_TYPE0x06Denotes point type mask. Point types are: #PDSDK_PT_MOVETO/#PDSDK_PT_LINETO/#PDSDK_PT_BEZIERTO.
PDSDK_FILL_ALTERNATE1The alternate fill mode.
PDSDK_FILL_WINDING2The winding fill mode.
PDSDK_RENDERSTATUS_READY0—
PDSDK_RENDERSTATUS_CONTINUE1—
PDSDK_RENDERSTATUS_DONE2—
PDSDK_RENDERSTATUS_FAILED3—
PDF_SHOWMODE_SINGLE0—
PDF_SHOWMODE_CONTINUOUS1—
PDF_SHOWMODE_SINGLE_FACING2—
PDF_SHOWMODE_CONTINUOUS_FACING3—
PDF_ZOOMEMODE_NONE0—
PDF_ZOOMEMODE_CUSTOM1—
PDF_ZOOMEMODE_ACTUAL_SIZE2—
PDF_ZOOMEMODE_FIT_PAGE3—
PDF_ZOOMEMODE_FIT_WIDTH4—
PDF_ZOOMEMODE_FIT_HEIGHT5—
PDF_ZOOMEMODE_FIT_RECTANGLE6—
PDF_ZOOMEMODE_FIT_VISIBLE7—
LAYOUT_VIEWER_VIEWMODE0—
LAYOUT_VIEWER_THUMBMODE1—

class IPDF_RenderContext

メソッド(4)

シグネチャ説明
Release()—
Create(IPDF_Page* page, IPDF_Matrix* display_matrix)—
Create(IPDF_FormObject* page, IPDF_Matrix* display_matrix)—
Render(IPDF_DIBitmap* bitmap, IPDF_Matrix* display_matrix, RENDER_O…)—

class IPDF_PathData

メソッド(5)

シグネチャ説明
Release()—
GetPointCount()—
GetPointX(int index)—
GetPointY(int index)—
GetPointFlag(int index)—

class IPDF_FxgeDevice

メソッド(14)

シグネチャ説明
Release()—
Attach(IPDF_DIBitmap* bitmap)—
SetPixel(int x, int y, unsigned int color, int alpha_flag = 0)—
FillRect(const PDSDK_Rect* rect, unsigned int color, int alpha_flag =…)—
DrawCosmeticLine(float x1, float y1, float x2, float y2, unsigned int color,i…)—
SetDIBits(const IPDF_DIBitmap* pBitmap, int left, int top, int blend_t…)—
StartRendering()—
EndRendering()—
Begin()—
End()—
IsPSPrintDriver()—
SaveState()—
RestoreState(int bKeepSaved = 0)—
SetClip_Rect(const PDSDK_Rect* rect)—

class IPDF_WindowsDevice

メソッド(18)

シグネチャ説明
Release()—
Attach(HDC hdc, int bCmykOutput = 0, int bForcePSOutput = 0, int ps…)—
DrawCosmeticLine(float x1, float y1, float x2, float y2, unsigned int color, …)—
SetDIBits(const IPDF_DIBitmap* pBitmap, int left, int top, int blend_t…)—
StartRendering()—
EndRendering()—
Begin()—
End()—
IsPSPrintDriver()—
SaveState()—
RestoreState(int bKeepSaved = 0)—
SetClip_Rect(const PDSDK_Rect* rect)—
GetBitmap()—
DrawPath(PDSDK_PATHPOINT* path_data, int point_count, int line_width,…)—
DrawLine(const PDSDK_FloatPoint& pt1, const PDSDK_FloatPoint& pt2, un…)—
DrawPolyLine(PDSDK_FloatPoint* points[], int points_count, unsigned int a…)—
DrawRect(const PDSDK_FloatRect& rect, unsigned int argb, int border_w…)—
DrawEllipse(const PDSDK_FloatRect rect, unsigned int argb, int border_wi…)—

class IPDF_ProgressiveRenderer

メソッド(6)

シグネチャ説明
Release()—
GetStatus()—
Start(IPDF_RenderContext* render_context, IPDF_FxgeDevice* device,…)—
Start(IPDF_RenderContext* render_context, IPDF_WindowsDevice* devi…)—
Continue(class IPDF_Pause* pause)—
Clear()—

class IViewer_RenderCallbacks

メソッド(16)

シグネチャ説明
GetDocument()—
GetPage(int page_index)—
ParsePage(int page_index)—
IsPageLocked()—
GetTickCount()—
OnBeforeDraw(IPDF_DIBitmap* bmp)—
OnAfterDraw(IPDF_DIBitmap* bmp)—
OnDrawBackground(IPDF_DIBitmap* bmp)—
OnDrawPShawdow(IPDF_DIBitmap* bmp, int page_index)—
OnPageVisible(int page_index, int visible)—
OnPageIndexChange(int page_index)—
OnStartRendering()—
OnFinishRendering()—
OnRenderDataChange()—
OnScalePage(int page_index)—
OnGotoPage(int page_index)—

class IPDF_Viewer

メソッド(44)

シグネチャ説明
Release()—
Create(IViewer_RenderCallbacks* callbacks, int nLayout)—
SetSize(int canvas_width, int canvas_height)—
InitLayout(int dpi_x, int dpi_y, Viewer_LayoutInfo* layout_info)—
SetShowMode(int mode, int facing_count)—
GetShowMode(int* mode, int* facing_count)—
SetZoomMode(int zoom_mode)—
GetZoomMode()—
SetRotate(int rotate)—
GetRotate()—
SetReverse(int reverse)—
SetCoverPage(int cover)—
IsCoverPage()—
SetShowAnnots(int show_annots)—
ContinueRendering()—
GetCurrentPage()—
GetPageRectInCanvas(int page_index, int bCalc = 0)—
GetPageFullRectInCanvas(int page_index)—
IsVisible(int page_index)—
GetScrollMaxRange(unsigned long* out_MaxWidth, unsigned long* out_MaxHeight)—
GetCurScrollPosX()—
GetCurScrollPosY()—
ScrollToPosX(unsigned long pos_x)—
ScrollToPosY(unsigned long pos_y)—
Scroll(unsigned long offset_x, unsigned long offset_y, int current_…)—
GotoPage(int page_index, int bFitVisible)—
GotoPage(int page_index, float start_left, float start_top)—
GotoPage(PDSDK_Dest dest)—
ZoomTo(int zoom_mode, float scale = 1.0f, int fit_mode = -1, int fi…)—
GetZoomFactor()—
GetZoomFactorFromZoomMode(int zoom_mode)—
FitVisible(int page_index)—
GetPageFromPosY(unsigned long pos_y)—
ClearViewRecords()—
AddViewRecords()—
PrevView()—
NextView()—
ExistPrevView()—
ExistNextView()—
SetRedrawFlag()—
SetPDFPagesChanged()—
GetFacingCount()—
GetRowCount()—
GetColCount()—