Visual C++ .Net Programming Tutorials: Visual C++ .NET Simple Drawing and Printing
| |
|
Chapters 21 and 22 introduced you to the world of Windows Forms and showed you how to use the classes in the System::Windows::Forms namespace to build GUI applications. This module introduces the drawing mechanisms that underlie all the Windows Forms functionality. You’re going to learn how to draw on forms, how to display images, and how to print. The Microsoft .NET subsystem that handles graphical output is called GDI+. Graphical Device Interface (GDI). It remained much the same through the versions of Windows that followed, but it has been greatly improved for the .NET Framework, hence the addition of the plus sign (+) to the name. GDI+ provides a library of classes for performing simple two-dimensional graphics, such as drawing lines and simple shapes, displaying text and bitmaps, and printing. Although GDI+ is much improved compared to the original GDI, it’s still essentially a simple two-dimensional graphics library, with no advanced features such as animation or three-dimensional effects. The System::Drawing::Printing namespace contains the classes that implement the printing functionality within GDI+. Printing isn’t particularly hard, but it can be a rather involved process because of the number of classes involved. The first class you’ll meet when printing is PrintDocument. A PrintDocument object represents your link with a printer and can be used for more than one print job. PrintDocument has four main properties – DefaultPageSettings, DocumentName, PrintController and PrinterSettings. The following are the topics in this Chapter.
|
Best viewed using FireFox 1.5.0 and above. Worst viewed using IE of any version
Webmaster contact: [contact[@]visualcplusdotnet.com] Copyright 2019 © Visualcplusdotnet. All rights reserved. Excellent hosting services provided by MochaHost - The Online Central
| About | Disclaimer | Privacy | Site Index & Project Download | Native C | Contact | | |
Custom Search | |
|
|