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.

ClassDescription
System_CAPS_pubclassBitmap

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.

System_CAPS_pubclassBitmapSuffixInSameAssemblyAttribute

Specifies that, when interpreting ToolboxBitmapAttribute declarations, the assembly should look for the indicated resources in the same assembly, but with the BitmapSuffix configuration value appended to the declared file name.

System_CAPS_pubclassBitmapSuffixInSatelliteAssemblyAttribute

Specifies that, when interpreting ToolboxBitmapAttribute declarations, the assembly should look for the indicated resources in a satellite assembly, but with the BitmapSuffix configuration value appended to the declared file name.

System_CAPS_pubclassBrush

Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.

System_CAPS_pubclassBrushes

Brushes for all the standard colors. This class cannot be inherited.

System_CAPS_pubclassBufferedGraphics

Provides a graphics buffer for double buffering.

System_CAPS_pubclassBufferedGraphicsContext

Provides methods for creating graphics buffers that can be used for double buffering.

System_CAPS_pubclassBufferedGraphicsManager

Provides access to the main buffered graphics context object for the application domain.

System_CAPS_pubclassColorConverter

Converts colors from one data type to another. Access this class through the TypeDescriptor.

System_CAPS_pubclassColorTranslator

Translates colors to and from GDI+ Color structures. This class cannot be inherited.

System_CAPS_pubclassFont

Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.

System_CAPS_pubclassFontConverter

Converts Font objects from one data type to another.

System_CAPS_pubclassFontFamily

Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.

System_CAPS_pubclassFontConverter.FontNameConverter

This API supports the product infrastructure and is not intended to be used directly from your code. FontConverter.FontNameConverter is a type converter that is used to convert a font name to and from various other representations.

System_CAPS_pubclassFontConverter.FontUnitConverter

This API supports the product infrastructure and is not intended to be used directly from your code. Converts font units to and from other unit types.

System_CAPS_pubclassGraphics

Encapsulates a GDI+ drawing surface. This class cannot be inherited.

System_CAPS_pubclassIcon

Represents a Windows icon, which is a small bitmap image that is used to represent an object. Icons can be thought of as transparent bitmaps, although their size is determined by the system.

System_CAPS_pubclassIconConverter

Converts an Icon object from one data type to another. Access this class through the TypeDescriptor object.

System_CAPS_pubclassImage

An abstract base class that provides functionality for the Bitmap and Metafile descended classes.

System_CAPS_pubclassImageAnimator

Animates an image that has time-based frames.

System_CAPS_pubclassImageConverter

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.

System_CAPS_pubclassImageFormatConverter

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.

System_CAPS_pubclassPen

Defines an object used to draw lines and curves. This class cannot be inherited.

System_CAPS_pubclassPens

Pens for all the standard colors. This class cannot be inherited.

System_CAPS_pubclassPointConverter

Converts a Point object from one data type to another.

System_CAPS_pubclassRectangleConverter

Converts rectangles from one data type to another. Access this class through the TypeDescriptor.

System_CAPS_pubclassRegion

Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.

System_CAPS_pubclassSizeConverter

The SizeConverter class is used to convert from one data type to another. Access this class through the TypeDescriptor object.

System_CAPS_pubclassSizeFConverter

Converts SizeF objects from one type to another.

System_CAPS_pubclassSolidBrush

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.

System_CAPS_pubclassStringFormat

Encapsulates 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.

System_CAPS_pubclassSystemBrushes

Each property of the SystemBrushes class is a SolidBrush that is the color of a Windows display element.

System_CAPS_pubclassSystemColors

Each property of the SystemColors class is a Color structure that is the color of a Windows display element.

System_CAPS_pubclassSystemFonts

Specifies the fonts used to display text in Windows display elements.

System_CAPS_pubclassSystemIcons

Each property of the SystemIcons class is an Icon object for Windows system-wide icons. This class cannot be inherited.

System_CAPS_pubclassSystemPens

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.

System_CAPS_pubclassTextureBrush

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.

System_CAPS_pubclassToolboxBitmapAttribute

Allows you to specify an icon to represent a control in a container, such as the Microsoft Visual Studio Form Designer.

StructureDescription
System_CAPS_pubstructureCharacterRange

Specifies a range of character positions within a string.

System_CAPS_pubstructureColor

Represents an ARGB (alpha, red, green, blue) color.

System_CAPS_pubstructurePoint

Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.

System_CAPS_pubstructurePointF

Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

System_CAPS_pubstructureRectangle

Stores a set of four integers that represent the location and size of a rectangle

System_CAPS_pubstructureRectangleF

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.

System_CAPS_pubstructureSize

Stores an ordered pair of integers, which specify a Height and Width.

System_CAPS_pubstructureSizeF

Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.

InterfaceDescription
System_CAPS_pubinterfaceIDeviceContext

Defines methods for obtaining and releasing an existing handle to a Windows device context.

DelegateDescription
System_CAPS_pubdelegateGraphics.DrawImageAbort

Provides a callback method for deciding when the DrawImage method should prematurely cancel execution and stop drawing an image.

System_CAPS_pubdelegateGraphics.EnumerateMetafileProc

Provides a callback method for the EnumerateMetafile method.

System_CAPS_pubdelegateImage.GetThumbnailImageAbort

Provides a callback method for determining when the GetThumbnailImage method should prematurely cancel execution.

EnumerationDescription
System_CAPS_pubenumContentAlignment

Specifies alignment of content on the drawing surface.

System_CAPS_pubenumCopyPixelOperation

Determines how the source color in a copy pixel operation is combined with the destination color to result in a final color.

System_CAPS_pubenumFontStyle

Specifies style information applied to text.

System_CAPS_pubenumGraphicsUnit

Specifies the unit of measure for the given data.

System_CAPS_pubenumKnownColor

Specifies the known system colors.

System_CAPS_pubenumRotateFlipType

Specifies how much an image is rotated and the axis used to flip the image.

System_CAPS_pubenumStringAlignment

Specifies the alignment of a text string relative to its layout rectangle.

System_CAPS_pubenumStringDigitSubstitute

The StringDigitSubstitute enumeration specifies how to substitute digits in a string according to a user's locale or language.

System_CAPS_pubenumStringFormatFlags

Specifies the display and layout information for text strings.

System_CAPS_pubenumStringTrimming

Specifies how to trim characters from a string that does not completely fit into a layout shape.

System_CAPS_pubenumStringUnit

Specifies the units of measure for a text string.

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.

System_CAPS_cautionCaution

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. For a supported alternative, see Windows Imaging Components.

Return to top
Show: