Jump to content

PMPrinterDC

From EDM2
Revision as of 00:31, 3 December 2015 by Martini (talk | contribs) (Created page with "==Description== Printing is very easy with these supplied classes: a sample printout can be produced with as little code as: PMPrinterDC printer(hab); // create an instance ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Printing is very easy with these supplied classes: a sample printout can be produced with as little code as:

PMPrinterDC printer(hab); // create an instance of a PMPrinterDC printer.open(); // open the DC printer.startDoc("Test Document");

PMPresSpace *ptr=new PMPresSpace(&printer, 1000, 1000, PU_ARBITRARY|PU_LOENGLISH|GPIF_DEFAULT|GPIT_NORMAL|GPIA_ASSOC, hab);

// [draw on ptr]

delete ptr; printer.endDoc("Test Document");