Download
Microsoft Visual Studio 2010 & .NET 4 RC

Microsoft Visual Studio 2010

Denver Visual Studio User Group   www.DenverVisualStudio.net 

 
 Review Details

Denver VS UG - Home    

     Also see Reviews and How To Review.
 
Graphics Programming with GDI+ (with C# and VB.NET)
Author(s): Mahesh Chand  Also see author's site
Published: 2003, ISBN 0-321-16077-0, 784 pages   
Publisher (more . . .):  Addison Wesley Professional
Series: Microsoft .NET Development Series.
Please note: the book cover may look slightly different than pictured.
 
 
 Review
 

 Four out of Five Stars
  Reviewed: May, 2004
  Reviewer: Peggy Wilmarth
 
       Mahesh Chand, author of "Graphics Programming with GDI+", is a .NET consultant and the founder and administrator of www.c-sharpcorner.com  and www.mindcracker.com. He has been working with .NET since the pre-beta releases. His previous books include two practical books for the programmer interested in ADO.NET: "A Programmer's Guide to ADO.NET" and "Applied ADO.NET programming". A prolific writer, Mahesh has also written several articles and tutorials on .NET related topics, including articles for Visual Studio magazine.

     With "Graphics Programming with GDI+", Chand has written a well-organized, well-written and easy-to-understand tutorial on the most common features of GDI+. Targeted for the beginning to intermediate level .NET developer, it covers everything: working with the Graphics Class, Brushes and Pens, Colors, Fonts and Text, Rectangles and Regions, rendering, images, image-manipulation, 2D graphics, transformations, printing, GDI for the Web, and Custom Controls. While most of the sample code in the book is written in C#, the source code can also be downloaded in VB.NET. This is also one of the few resources that include coverage of how to read and write images to a database with ADO.NET.

     The book begins with an introduction to GDI+ and the basics of graphics programming in Windows. For the programmer with a GDI background, Chand explains the differences between GDI and GDI+. The core of the book includes a hands-on guide to practical topics, including interesting and fun examples such as how to develop a GDI+Painter, GDI+Editor, ImageViewer, and ImageAnimator.

     The best features of the book include extensive coverage of printing in .NET, with over 100 pages devoted to such topics as printing graphics and images, manipulating printer settings and hard-to-find coverage of the Print Controller class. Chand explains all the details of printing in .NET, including topics you won't find on MSDN or in other books. In addition, this is one of the few places that ASP.NET developers can find a gentle introduction to GDI+ for Web applications. Chand draws form his experiences on the c-sharpcorner message boards, and includes a chapter on GDI+ FAQs, along with tips for optimizing performance and image rendering, a chapter covering the use of GDI in a managed environment through COM interop, and a chapter on "Best Practices" with GDI+. This book is also filled with the kind of sample code which is so often missing from MSDN.


     Having said that, those programmers with a strong GDI background may find the coverage of GDI+ a little thin. There is just a scant amount of information on such topics as the underlying coordinate system of GDI+. The book also doesn't discuss how vector shapes in GDI+ get rendered into pixels, and how this can lead to "off by one pixel" issues. There is also no discussion on the more subtle issues surrounding metafiles (for example, when to use an hDC). And while there is an introduction to animation, it's definitely not heavyweight coverage.

     Overall, this book is an excellent reference book on GDI+ for the beginning to intermediate level .NET developer and is a useful handbook for anyone who does graphics programming for Windows or Web applications. And as an interesting FYI, this book is one of the many excellent .NET books available online at www.safaribooksonline.com/. If you are looking for just one book that provides well-rounded coverage of the entire GDI+ API, purchase or download a copy of "Graphics Programming with GDI+".
 
Top
Copyright © 2000 - 2010 Denver Microsoft® Visual Studio User Group.
All Rights Reserved. Please see Notice