ipdf_render.h
渲染:渲染上下文、渐进式渲染、显示设备与渲染选项常量。
Die Schnittstellenbeschreibungen bleiben im englischen Original der Header — so lassen sie sich direkt mit dem Code abgleichen.
Konstanten
| Signatur | Value | Description |
|---|---|---|
| PDSDK_RENDER_COLOR_NORMAL | 0 | — |
| PDSDK_RENDER_COLOR_GRAY | 1 | — |
| PDSDK_RENDER_COLOR_TWOCOLOR | 2 | — |
| PDSDK_RENDER_COLOR_ALPHA | 3 | — |
| PDSDK_RENDER_CLEARTYPE | 0x00000001 | — |
| PDSDK_RENDER_PRINTGRAPHICTEXT | 0x00000002 | — |
| PDSDK_RENDER_FORCE_DOWNSAMPLE | 0x00000004 | — |
| PDSDK_RENDER_PRINTPREVIEW | 0x00000008 | — |
| PDSDK_RENDER_BGR_STRIPE | 0x00000010 | — |
| PDSDK_RENDER_NO_NATIVETEXT | 0x00000020 | — |
| PDSDK_RENDER_FORCE_HALFTONE | 0x00000040 | — |
| PDSDK_RENDER_RECT_AA | 0x00000080 | — |
| PDSDK_RENDER_FILL_FULLCOVER | 0x00000100 | — |
| PDSDK_RENDER_PRINTIMAGETEXT | 0x00000200 | — |
| PDSDK_RENDER_OVERPRINT | 0x00000400 | — |
| PDSDK_RENDER_THINLINE | 0x00000800 | — |
| PDSDK_RENDER_NOTEXTSMOOTH | 0x10000000 | — |
| PDSDK_RENDER_NOPATHSMOOTH | 0x20000000 | — |
| PDSDK_RENDER_NOIMAGESMOOTH | 0x40000000 | — |
| PDSDK_RENDER_LIMITEDIMAGECACHE | 0x80000000 | — |
| PDSDK_DASHPATTERN_NONE | 0 | solid |
| PDSDK_DASHPATTERN_3_0 | 1 | 3 units on, 3 units off, ... |
| PDSDK_DASHPATTERN_2_1 | 2 | 1 on, 2 off, 2 on, 2 off |
| PDSDK_DASHPATTERN_2_1_0 | 3 | 2 on, 1 off, 2 on, 1 off |
| PDSDK_DASHPATTERN_3_5_6 | 4 | 2 off, 3 on, 5 off, 3 on, 5 off |
| PDSDK_DASHPATTERN_2_3_11 | 5 | 1 on, 3 off, 2 on, 3 off, 2 on |
| PDSDK_DASHPATTERN_6 | 6 | — |
| PDSDK_PT_CLOSEFIGURE | 0x01 | Specifies 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_LINETO | 0x02 | Specifies that a line is to be drawn from the current position to this point, which then becomes the new current position. |
| PDSDK_PT_BEZIERTO | 0x04 | Specifies that this point is a control point or ending point for a B��zier spline. |
| PDSDK_PT_MOVETO | 0x06 | Specifies that this point starts a figure. This point becomes the new current position. |
| PDSDK_PT_TYPE | 0x06 | Denotes point type mask. Point types are: #PDSDK_PT_MOVETO/#PDSDK_PT_LINETO/#PDSDK_PT_BEZIERTO. |
| PDSDK_FILL_ALTERNATE | 1 | The alternate fill mode. |
| PDSDK_FILL_WINDING | 2 | The winding fill mode. |
| PDSDK_RENDERSTATUS_READY | 0 | — |
| PDSDK_RENDERSTATUS_CONTINUE | 1 | — |
| PDSDK_RENDERSTATUS_DONE | 2 | — |
| PDSDK_RENDERSTATUS_FAILED | 3 | — |
| PDF_SHOWMODE_SINGLE | 0 | — |
| PDF_SHOWMODE_CONTINUOUS | 1 | — |
| PDF_SHOWMODE_SINGLE_FACING | 2 | — |
| PDF_SHOWMODE_CONTINUOUS_FACING | 3 | — |
| PDF_ZOOMEMODE_NONE | 0 | — |
| PDF_ZOOMEMODE_CUSTOM | 1 | — |
| PDF_ZOOMEMODE_ACTUAL_SIZE | 2 | — |
| PDF_ZOOMEMODE_FIT_PAGE | 3 | — |
| PDF_ZOOMEMODE_FIT_WIDTH | 4 | — |
| PDF_ZOOMEMODE_FIT_HEIGHT | 5 | — |
| PDF_ZOOMEMODE_FIT_RECTANGLE | 6 | — |
| PDF_ZOOMEMODE_FIT_VISIBLE | 7 | — |
| LAYOUT_VIEWER_VIEWMODE | 0 | — |
| LAYOUT_VIEWER_THUMBMODE | 1 | — |
class IPDF_RenderContext
Methoden(4)
| Signatur | Beschreibung |
|---|---|
| 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
Methoden(5)
| Signatur | Beschreibung |
|---|---|
| Release() | — |
| GetPointCount() | — |
| GetPointX(int index) | — |
| GetPointY(int index) | — |
| GetPointFlag(int index) | — |
class IPDF_FxgeDevice
Methoden(14)
| Signatur | Beschreibung |
|---|---|
| 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
Methoden(18)
| Signatur | Beschreibung |
|---|---|
| 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
Methoden(6)
| Signatur | Beschreibung |
|---|---|
| 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
Methoden(16)
| Signatur | Beschreibung |
|---|---|
| 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
Methoden(44)
| Signatur | Beschreibung |
|---|---|
| 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() | — |