Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Drawing Namespace

The System.Drawing namespace provides access to GDI+ basic graphics functionality. More advanced functionality is provided in the System.Drawing.Drawing2D, System.Drawing.Imaging, and System.Drawing.Text namespaces.

The Graphics class provides methods for drawing to the display device. Classes such as Rectangle and Point encapsulate GDI+ primitives. The Pen class is used to draw lines and curves, while classes derived from the abstract class Brush are used to fill the interiors of shapes.

Caution noteCaution:

Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

  ClassDescription
Public classBitmap Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes. A Bitmap is an object used to work with images defined by pixel data.
Public classBrush Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Public classBrushes Brushes for all the standard colors. This class cannot be inherited.
Public classBufferedGraphics Provides a graphics buffer for double buffering.
Public classBufferedGraphicsContext Provides methods for creating graphics buffers that can be used for double buffering.
Public classBufferedGraphicsManager Provides access to the main buffered graphics context object for the application domain.
Public classColorConverter Converts colors from one data type to another. Access this class through the TypeDescriptor.
Public classColorTranslator Translates colors to and from GDI+ Color structures. This class cannot be inherited.
Public classFont Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Public classFontConverter Converts Font objects from one data type to another.
Public classFontConverter..::.FontNameConverterInfrastructure. FontConverter..::.FontNameConverter is a type converter that is used to convert a font name to and from various other representations.
Public classFontConverter..::.FontUnitConverterInfrastructure. Converts font units to and from other unit types.
Public classFontFamily Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
Public classGraphics Encapsulates a GDI+ drawing surface. This class cannot be inherited.
Public classIcon Represents a Windows icon, which is a small bitmap image used to represent an object. Icons can be thought of as transparent bitmaps, although their size is determined by the system.
Public classIconConverter Converts an Icon object from one data type to another. Access this class through the TypeDescriptor object.
Public classImageAn abstract base class that provides functionality for the Bitmap and Metafile descended classes.
Public classImageAnimator Animates an image that has time-based frames.
Public classImageConverter ImageConverter is a class that can be used to convert Image objects from one data type to another. Access this class through the TypeDescriptor object.
Public classImageFormatConverter ImageFormatConverter is a class that can be used to convert ImageFormat objects from one data type to another. Access this class through the TypeDescriptor object.
Public classPen Defines an object used to draw lines and curves. This class cannot be inherited.
Public classPens Pens for all the standard colors. This class cannot be inherited.
Public classPointConverter Converts a Point object from one data type to another. Access this class through the TypeDescriptor object.
Public classRectangleConverter Converts rectangles from one data type to another. Access this class through the TypeDescriptor.
Public classRegion Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.
Public classSizeConverter The SizeConverter class is used to convert from one data type to another. Access this class through the TypeDescriptor object.
Public classSizeFConverter Converts SizeF objects from one type to another.
Public classSolidBrush Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths. This class cannot be inherited.
Public classStringFormatEncapsulates text layout information (such as alignment, orientation and tab stops) display manipulations (such as ellipsis insertion and national digit substitution) and OpenType features. This class cannot be inherited.
Public classSystemBrushes Each property of the SystemBrushes class is a SolidBrush that is the color of a Windows display element.
Public classSystemColors Each property of the SystemColors class is a Color structure that is the color of a Windows display element.
Public classSystemFonts Specifies the fonts used to display text in Windows display elements.
Public classSystemIcons Each property of the SystemIcons class is an Icon object for Windows system-wide icons. This class cannot be inherited.
Public classSystemPens Each property of the SystemPens class is a Pen that is the color of a Windows display element and that has a width of 1 pixel.
Public classTextureBrush Each property of the TextureBrush class is a Brush object that uses an image to fill the interior of a shape. This class cannot be inherited.
Public classToolboxBitmapAttribute Allows you to specify an icon to represent a control in a container, such as the Microsoft Visual Studio Form Designer.
  StructureDescription
Public structureCharacterRange Specifies a range of character positions within a string.
Public structureColor Represents an ARGB (alpha, red, green, blue) color.
Public structurePoint Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
Public structurePointF Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
Public structureRectangle Stores a set of four integers that represent the location and size of a rectangle. For more advanced region functions, use a Region object.
Public structureRectangleF Stores a set of four floating-point numbers that represent the location and size of a rectangle. For more advanced region functions, use a Region object.
Public structureSizeStores an ordered pair of integers, typically the width and height of a rectangle.
Public structureSizeFStores an ordered pair of floating-point numbers, typically the width and height of a rectangle.
  InterfaceDescription
Public interfaceIDeviceContext Defines methods for obtaining and releasing an existing handle to a Windows device context.
  DelegateDescription
Public delegateGraphics..::.DrawImageAbort Provides a callback method for deciding when the DrawImage method should prematurely cancel execution and stop drawing an image.
Public delegateGraphics..::.EnumerateMetafileProc Provides a callback method for the EnumerateMetafile method.
Public delegateImage..::.GetThumbnailImageAbort Provides a callback method for determining when the GetThumbnailImage method should prematurely cancel execution.
  EnumerationDescription
Public enumerationContentAlignment Specifies alignment of content on the drawing surface.
Public enumerationCopyPixelOperation Determines how the source color in a copy pixel operation is combined with the destination color to result in a final color.
Public enumerationFontStyle Specifies style information applied to text.
Public enumerationGraphicsUnit Specifies the unit of measure for the given data.
Public enumerationKnownColor Specifies the known system colors.
Public enumerationRotateFlipType Specifies the direction of an image's rotation and the axis used to flip the image.
Public enumerationStringAlignment Specifies the alignment of a text string relative to its layout rectangle.
Public enumerationStringDigitSubstitute The StringDigitSubstitute enumeration specifies how to substitute digits in a string according to a user's locale or language.
Public enumerationStringFormatFlags Specifies the display and layout information for text strings.
Public enumerationStringTrimming Specifies how to trim characters from a string that does not completely fit into a layout shape.
Public enumerationStringUnit Specifies the units of measure for a text string.
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker