Printing & Plotting
Plot the drawing to a printer, to PDF, or to a raster image, and manage named plot regions.
Outputs
- Printer / PDF — the
CadPrint*family drives the plot pipeline to a device or a PDF file, honouring the plot area, scale and rotation. - Raster image —
CadExportImagerenders the drawing (or a region) to an image file at a chosen pixel size — useful for thumbnails and previews.
Plot regions
The CadPrnRect* / rectangle-print family defines and queries named
plot rectangles — rectangular areas of model space earmarked for output, each with
its own scale and paper mapping. This mirrors Vecad's print-region model so a
migrating host keeps its plotting UI.
/* render the current view region to a PNG at 1600×1200 */ CadExportImage(dwg, "preview.png", 1600, 1200);
Rendering for print/export uses the same OpenGL scene as the
on-screen viewport, so what plots matches what's shown (subject to the target
resolution and paper mapping).