Instances of this class are used to print to a printer. Applications create a GC on a printer using <code>new GC(printer)</code> and then draw on the printer GC using the usual graphics calls. <p> A <code>Printer</code> object may be constructed by providing a <code>PrinterData</code> object which identifies the printer. A <code>PrintDialog</code> presents a print dialog to the user and returns an initialized instance of <code>PrinterData</code>. Alternatively, calling <code>new Printer()</code> will construct a printer object for the user's default printer. </p><p> Application code must explicitly invoke the <code>Printer.dispose()</code> method to release the operating system resources managed by each instance when those instances are no longer required. </p>
Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
Contributors: IBM Corporation - initial API and implementation Port to the D programming language: Frank Benoit <benoit@tionex.de>