| help | account  


Graphics Programming with GDI+
View Larger Image
Mahesh Chand
Addison-Wesley, Paperback, Published October 2003, 740 pages, ISBN 0321160770
List Price: $64.99
Our Price: $40.95
You Save: $24.04 (37% Off)


FREE Shipping on Orders over $40!*
Availability: Out-Of-Stock

Customer Reviews: 2     Average Customer Rating:

Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

By introducing the .NET Framework to the programming world, Microsoft has changed the perspective and vision of programming and programmers. Unlike previous programming environments, the .NET Framework is designed with the future of software development in mind. Besides the introduction of the new C# language and significant additions to Visual Basic.NET and other languages; the .NET Framework also provides many new tools and utilities, which make a programmer's life easier.

Besides the languages, tools, and utilities, the .NET Framework library is the real power of the .NET Framework. It's an object-oriented class library that defines an interface to interact with various programming technologies. Any programming language that is designed to work with the .NET Framework can access the library, which makes a programmer's life easier because the methods and properties defied in the library are the same, regardless of the language.

Each class defined in the .NET Framework library belongs to a particular namespace-a logical unit, which is used to separate a particular programming interface from others. For example, the System.Windows.Forms namespace defines classes that are used for Windows Forms development. System.Data and its sub-namespaces define classes are used for database development (ADO.NET).

GDI+ is the next generation graphics device interface, defined in System.Drawing and its sub-namespaces. This book focuses on how to write graphical Windows and Web applications using GDI+ and C# for the Microsoft .NET Framework.

Who This book Is For

This book is designed for an intermediate developer who wants to write graphics applications for the .NET Framework using GDI+ and C#. Here's a list of topics we cover:

  • What GDI+ is all about, and how it differs from GDI
  • How GDI+ works, and where it is defined in the .NET Framework library
  • How to draw text, lines, curves, rectangles, ellipses, and other graphics shapes in GDI+
  • How to fill rectangles, ellipses, and other closed curves with different colors, styles, and textures
  • Painting and drawing in .NET
  • Viewing and manipulating images
  • How Windows Forms and Web Forms are related to drawing
  • How to write Web-based graphics applications
  • Printing in .NET
  • Transforming graphics objects, colors, and images
  • Interactive color blending and transparent colors
  • Using GDI in.NET applications
  • Precautions you should take when writing GDI+ applications
  • Optimizing performance of GDI+ applications

Prerequisites

There are some things you should know before beginning this book:
  • Language: This book is written in C#, but developers who want to use GDI+ with other .NET Framework languages--including Visual Basic.NET--can also use this book. Since both languages share the same .NET Framework library, there actually isn't much difference aside from the language syntaxes. Knowledge of the C# or VB.NET languages is not a requirement. If you are a C++ developer, you should have no difficulty using this book.
  • Framework: We used Visual Studio .NET to develop and test the samples in this book. Knowledge of Visual Studio .NET and basics of the .NET Framework is a requirement.
  • A basic understanding of graphics programming, is a plus but not mandatory.
  • Experience with GDI programming, is a plus but not mandatory.

What's in This Book That I Won't See in Other Books?

  • Written by an experienced author who has been watching every .NET move closely since the birth of .NET.
  • Author works very closely with .NET community and has extensive experience developing real world .NET applications.
  • The book intensively covers Windows Forms and how to use then in Windows applications.
  • Besides covering GDI+ related namespaces and classes, we take a practical approach, discussing all concepts.
  • Almost every chapter of the book ends with a real world application, including GDI+Painter, GDI+Editor, ImageViewer, ImageAnimator, and many more.
  • A dedicated chapter on GDI+ performance techniques, which discusses what to do and what not to do, when writing graphics applications in .NET using GDI+.
  • A dedicated chapter on frequently-asked GDI+ questions, compiled from various discussion forums and newsgroups.

Chapter Organization

Before we start, let's take a quick tour of this book. It has 16 chapters and 2 appendixes. Here's a brief introduction:

Chapter 1. GDI+: The Next-Generation Graphics Interface
GDI+ is a new and improved version of GDI. This chapter introduces you to the GDI+ library, its advantages over previous versions, new features and additions to the library, and how it is related to the .NET Framework.

Chapter 2. My First GDI+ Application
In the .NET Framework Library, GDI+ functionality is defined in the System.Drawing namespace and its sub namespaces. In this chapter, we discuss the contents of these namespaces. After finishing this chapter, you will understand what functionality is defined where and when to which namespace.

Chapter 3. The Graphics Class
The Graphics class plays a major role in GDI+. Whenever you need to draw a graphics object, you must use the Graphics class. In this chapter, we discuss Graphics class methods and properties and how to use them. After completing this chapter, you'll have pretty good idea how to draw and fill various graphics objects.

Chapter 4. Working with Brushes and Pens
Brushes and pens are used to fill and draw graphics object. GDI+ provides many classes to work with brushes and pens. This chapter shows how to work with them.

Chapter 5. Colors, Fonts, and Text
In this chapter, we discuss the color, font and text-related classes provided by the .NET framework class library in more detail.

Chapter 6. Rectangles and Regions
Rectangles and regions can be very useful... and very tricky. In this chapter, we cover them in detail.

Chapter 7. Working with Images
The .NET Framework divides GDI+ functionality between two namespaces - System.Drawing and System.Drawing.Imaging. This chapter covers imaging-related basis functionality defined in the System.Drawing namespace.

Chapter 8. Advanced Imaging
In this chapter, we discuss more Imaging functionality, including the System.Drawing.Imaging namespace and how to work with metafiles in the .NET framework. We will also see how to maintain the quality and rendering speed of images in GDI+.

Chapter 9. Advanced 2D Graphics
In this chapter, we discuss advanced 2-dimensional graphics programming using GDI+. Advanced 2D techniques include blending, matrix, graphics path and gradient brushes.

Chapter 10. Transformation
In this chapter, we examine GDI+ transformation. Not only can you apply transformation on graphics shapes, curves, and images, you can also apply transformation on image colors.

Chapter 11. Printing
Printing functionality in the .NET Framework library is defined in the System.Drawing.Printing namespace. In this chapter, we explore this namespace and how to write printing applications.

Chapter 12. Developing GDI+ Web Applications
GDI+ can also be used in Web applications. In this chapter, we will discuss how you can use GDI+ in Web application with ASP.NET.

Chapter 13. GDI+ Best Practices and Performance Techniques
In this chapter, we concentrate on GDI+ best practices and GDI+ related tips and tricks to improve the quality and performance of drawing.

Chapter 14. GDI Interoperability
In this chapter, we see how GDI can be used with GDI+ in managed applications.

Chapter 15. Miscellaneous GDI+ Examples
In this chapter, we have some for with GDI+. Among the topics in this chapter are designing interactive GUI applications, shaped forms, and adding custom text in images.

Appendix A. Exception Handling in .NET
This section introduces exception and error handling in .NET.

Exception and Error Handling in the Samples

The .NET Framework supports structured exception handling that's similar to C++ exception handling. In our samples, we don't provide exception handling code. Adding exception handling code to every code snippet would have been confusing and redundant. Instead, we discuss exception and error handling concepts in appendix A. It is highly recommended that you read Appendix A and apply exception and error handling techniques in your applications.


Customer Reviews

Customer Reviews: 2     Average Customer Rating:

May 19, 2005     Ray from England
Very poor and very shallow
Little more than a rewriting of the GDI+ help file with minimalist samples of the main functions. No discussion of why you might want to use particular functions and no real-life examples at all. Don't even THINK of looking for useful techniques in here. The closest thing to a useful program discussed is an (ugly) clone of Paint - which I would NOT consider an example to be proud of. The pictures are all in black-and-white, which is ludicrous in a book that deals with colour graphics, even if colour versions are available for download.

Oct 22, 2003     Jim from CA, USA
MSDN help recompiled
this book copied MSDN and converted it into a book. When you look at the code written, it looks like author is a real novice. In other words the quality of code is not good. Most of the examples don't even run they throw exception. What is more shocking is that the publisher has put this book in .NET series which they claim is written by best people in .net but I think author is NOT even good. Look at the source code before buying this book.



Forgot your password?
FAQs
Shipping Options
Returns
Your Orders
Your Account