Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
How to Create Dash Pattern

Example
Collapse All

Example

C++

[copy to clipboard]
PM_DOCUMENT doc = PM_DOCUMENT_New();
PM_RECT rect = {0, 0, 300, 300};
PM_PAGE page = PM_DOCUMENT_AddPage(doc, rect);
PM_CANVAS canvas = PM_PAGE_GetCanvas(page);

float dashPattern[] = {2.0f, 5.0f, 3.0f, 4.0f};
float dashPhase = 1.0f;
PM_CANVAS_SetLineDash(canvas, dashPattern, 4, dashPhase);
PM_CANVAS_MoveTo(canvas, 0, 0);
PM_CANVAS_DrawLineTo(canvas, 300, 300);
PM_CANVAS_Stroke(canvas);

PM_DOCUMENT_Save(doc, "DashPattern.pdf");
PM_DOCUMENT_Free(doc);

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots