Easy Way to Learn ASP.NET

GDI+ Tutorial

GDI+ Introduction
GDI+ Lines
GDI+ Rectangles
GDI+ Ellipses
GDI+ Arcs
GDI+ Polygons
GDI+ Cardinal Splines
GDI+ Bezier Splines
GDI+ Graphics Paths
GDI+ Brushes
GDI+ Regions
GDI+ Antialiasing
GDI+ Bitmaps
GDI+ Metafiles
GDI+ Transformations
GDI+ Text

Metafiles in GDI+

GDI+ provides the Metafile class so that you can record and display metafiles. A metafile, also called a vector image, is an image that is stored as a sequence of drawing commands and settings. The Image class is a base class of Metafile class.

GDI+ can display metafiles that have been stored in the following formats:


Drawing Metafile Images

To display metafile image, use Metafile class to load metafile image and then call DrawImage method of the Graphics class.

The following code example demonstrates how to display a metafile image: