Export (0) Print
Expand All

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 classBitmapEncapsulates 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 classBrushDefines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Public classBrushesBrushes for all the standard colors. This class cannot be inherited.
Public classBufferedGraphicsProvides a graphics buffer for double buffering.
Public classBufferedGraphicsContextProvides methods for creating graphics buffers that can be used for double buffering.
Public classBufferedGraphicsManagerProvides access to the main buffered graphics context object for the application domain.
Public classColorConverterConverts colors from one data type to another. Access this class through the TypeDescriptor.
Public classColorTranslatorTranslates colors to and from GDI+ Color structures. This class cannot be inherited.
Public classFontDefines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Public classFontConverterConverts 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 classFontFamilyDefines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
Public classGraphicsEncapsulates a GDI+ drawing surface. This class cannot be inherited.
Public classIconRepresents 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 classIconConverterConverts 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 classImageAnimatorAnimates an image that has time-based frames.
Public classImageConverterImageConverter 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 classImageFormatConverterImageFormatConverter 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 classPenDefines an object used to draw lines and curves. This class cannot be inherited.
Public classPensPens for all the standard colors. This class cannot be inherited.
Public classPointConverterConverts a Point object from one data type to another. Access this class through the TypeDescriptor object.
Public classRectangleConverterConverts rectangles from one data type to another. Access this class through the TypeDescriptor.
Public classRegionDescribes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.
Public classSizeConverterThe SizeConverter class is used to convert from one data type to another. Access this class through the TypeDescriptor object.
Public classSizeFConverterConverts SizeF objects from one type to another.
Public classSolidBrushDefines 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 classSystemBrushesEach property of the SystemBrushes class is a SolidBrush that is the color of a Windows display element.
Public classSystemColorsEach property of the SystemColors class is a Color structure that is the color of a Windows display element.
Public classSystemFontsSpecifies the fonts used to display text in Windows display elements.
Public classSystemIconsEach property of the SystemIcons class is an Icon object for Windows system-wide icons. This class cannot be inherited.
Public classSystemPensEach 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 classTextureBrushEach 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 classToolboxBitmapAttributeAllows you to specify an icon to represent a control in a container, such as the Microsoft Visual Studio Form Designer.

  StructureDescription
Public structureCharacterRangeSpecifies a range of character positions within a string.
Public structureColorRepresents an ARGB (alpha, red, green, blue) color.
Public structurePointRepresents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
Public structurePointFRepresents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
Public structureRectangleStores a set of four integers that represent the location and size of a rectangle. For more advanced region functions, use a Region object.
Public structureRectangleFStores 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 interfaceIDeviceContextDefines methods for obtaining and releasing an existing handle to a Windows device context.

  DelegateDescription
Public delegateGraphics.DrawImageAbortProvides a callback method for deciding when the DrawImage method should prematurely cancel execution and stop drawing an image.
Public delegateGraphics.EnumerateMetafileProcProvides a callback method for the EnumerateMetafile method.
Public delegateImage.GetThumbnailImageAbortProvides a callback method for determining when the GetThumbnailImage method should prematurely cancel execution.

  EnumerationDescription
Public enumerationContentAlignmentSpecifies alignment of content on the drawing surface.
Public enumerationCopyPixelOperationDetermines how the source color in a copy pixel operation is combined with the destination color to result in a final color.
Public enumerationFontStyleSpecifies style information applied to text.
Public enumerationGraphicsUnitSpecifies the unit of measure for the given data.
Public enumerationKnownColorSpecifies the known system colors.
Public enumerationRotateFlipTypeSpecifies the direction of an image's rotation and the axis used to flip the image.
Public enumerationStringAlignmentSpecifies the alignment of a text string relative to its layout rectangle.
Public enumerationStringDigitSubstituteThe StringDigitSubstitute enumeration specifies how to substitute digits in a string according to a user's locale or language.
Public enumerationStringFormatFlagsSpecifies the display and layout information for text strings.
Public enumerationStringTrimmingSpecifies how to trim characters from a string that does not completely fit into a layout shape.
Public enumerationStringUnitSpecifies the units of measure for a text string.

Community Additions

ADD
Show:
© 2014 Microsoft