Working with Images

In viewing and manipulating images, GDI+ provides significant improvements over its predecessor, GDI. In this chapter we will discuss the following topics:

  • Basic imaging-related classes defined in the .NET Framework library
  • The difference between raster and vector images
  • The Image class, its properties, and its methods
  • Writing an image viewer application
  • Opening and viewing images
  • Retrieving image properties
  • Creating thumbnails
  • Rotating and flipping images
  • Zooming in and out on images
  • Saving and skewing images
  • Changing the resolution and scaling of images
  • Playing animated images
  • The Bitmap class, its properties, and its methods
  • Using the Icon class to work with icons
  • Drawing transparent images
  • Using the PictureBox control to draw images

As we said earlier, the graphics-related functionality in the .NET Framework class library is defined in the System.Drawing namespace and its helper namespaces. The imaging functionality is divided into two categories by separation into two namespaces. Basic imaging functionality is defined in the System.Drawing namespace; advanced imaging functionality is defined in the System.Drawing.Imaging namespace. This chapter covers the former; Chapter 8 will focus on the latter.

GDI+: The Next-Generation Graphics Interface

Your First GDI+ Application

The Graphics Class

Working with Brushes and Pens

Colors, Fonts, and Text

Rectangles and Regions

Working with Images

Advanced Imaging

Advanced 2D Graphics

Transformation

Printing

Developing GDI+ Web Applications

GDI+ Best Practices and Performance Techniques

GDI Interoperability

Miscellaneous GDI+ Examples

Appendix A. Exception Handling in .NET



GDI+ Programming with C#
GDI+ Programming with C#
ISBN: 073561265X
EAN: N/A
Year: 2003
Pages: 145

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net