The System.Drawing.Drawing2D namespace provides advanced two-dimensional and vector graphics functionality.
The following table lists some of the important classes and enumerations in theSystem.Drawing.Drawing2D namespace, grouped into categories.
|
The System.Drawing.Drawing2D.GraphicsState and System.Drawing.Drawing2D.GraphicsContainer classes report information about the current Graphics object. System.Drawing.Drawing2D.GraphicsPath classes represent a series of lines and curves. The System.Drawing.Drawing2D.GraphicsPathIterator and System.Drawing.Drawing2D.PathData classes provide detailed information about the contents of a System.Drawing.Drawing2D.GraphicsPath object. |
|
The System.Drawing.Drawing2D.Matrix class represents a matrix for geometric transforms. The System.Drawing.Drawing2D.MatrixOrder enumeration specifies the order for matrix transformations. |
|
The System.Drawing.Drawing2D.PathGradientBrush and System.Drawing.Drawing2D.HatchBrush classes enable you to fill shapes with either a gradient, or hatch pattern, respectively. |
|
The System.Drawing.Drawing2D.LineCap and System.Drawing.Drawing2D.CustomLineCap enumerations enable you to specify cap styles for a line. The, System.Drawing.Drawing2D.LineJoin enumeration enables you to specify how two lines are joined in a path. The System.Drawing.Drawing2D.PenAlignment enumeration enables you specify the alignment of the drawing tip, when you draw a line. The System.Drawing.Drawing2D.PenType enumeration specifies the pattern a line should be filled with. |
|
The System.Drawing.Drawing2D.HatchStyle enumeration specifies fill styles for a System.Drawing.Drawing2D.HatchBrush. The System.Drawing.Drawing2D.Blend class specifies a blend pattern for a System.Drawing.Drawing2D.LinearGradientBrush. The System.Drawing.Drawing2D.FillMode enumeration specifies the fill style for a System.Drawing.Drawing2D.GraphicsPath. |
Classes in the System.Drawing.Drawing2D namespace are not supported for use in a Windows or vstecasp service. Attempting to use these classes in one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.
Type | Reason |
---|---|
AdjustableArrowCap |
Represents an adjustable arrow-shaped line cap. This class cannot be inherited. |
Blend |
Defines a blend pattern for a System.Drawing.Drawing2D.LinearGradientBrush object. This class cannot be inherited. |
ColorBlend |
Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited. |
CombineMode |
Specifies how different clipping regions can be combined. |
CompositingMode |
Specifies how the source colors are combined with the background colors. |
CompositingQuality |
Specifies the quality level to use during compositing. |
CoordinateSpace |
Specifies the system to use when evaluating coordinates. |
CustomLineCap |
Encapsulates a custom user-defined line cap. |
DashCap |
Specifies the type of graphic shape to use on both ends of each dash in a dashed line. |
DashStyle |
Specifies the style of dashed lines drawn with a System.Drawing.Pen object. |
FillMode |
Specifies how the interior of a closed path is filled. |
FlushIntention |
Specifies whether commands in the graphics stack are terminated (flushed) immediately or executed as soon as possible. |
GraphicsContainer |
Represents the internal data of a graphics container. This class is used when saving the state of a System.Drawing.Graphics object using the System.Drawing.Graphics.BeginContainer and System.Drawing.Graphics.EndContainer(System.Drawing.Drawing2D.GraphicsContainer) methods. This class cannot be inherited. |
GraphicsPath |
Represents a series of connected lines and curves. This class cannot be inherited. |
GraphicsPathIterator |
Provides the ability to iterate through subpaths in a System.Drawing.Drawing2D.GraphicsPath and test the types of shapes contained in each subpath. This class cannot be inherited. |
GraphicsState |
Represents the state of a System.Drawing.Graphics object. This object is returned by a call to the System.Drawing.Graphics.Save methods. This class cannot be inherited. |
HatchBrush |
Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited. |
HatchStyle |
Specifies the different patterns available for System.Drawing.Drawing2D.HatchBrush objects. |
InterpolationMode |
The System.Drawing.Drawing2D.InterpolationMode enumeration specifies the algorithm that is used when images are scaled or rotated. |
LinearGradientBrush |
Encapsulates a System.Drawing.Brush with a linear gradient. This class cannot be inherited. |
LinearGradientMode |
Specifies the direction of a linear gradient. |
LineCap |
Specifies the available cap styles with which a System.Drawing.Pen object can end a line. |
LineJoin |
Specifies how to join consecutive line or curve segments in a figure (subpath) contained in a System.Drawing.Drawing2D.GraphicsPath object. |
Matrix |
Encapsulates a 3-by-3 affine matrix that represents a geometric transform. This class cannot be inherited. |
MatrixOrder |
Specifies the order for matrix transform operations. |
PathData |
Contains the graphical data that makes up a System.Drawing.Drawing2D.GraphicsPath object. This class cannot be inherited. |
PathGradientBrush |
Encapsulates a System.Drawing.Brush object that fills the interior of a System.Drawing.Drawing2D.GraphicsPath object with a gradient. This class cannot be inherited. |
PathPointType |
Specifies the type of point in a System.Drawing.Drawing2D.GraphicsPath object. |
PenAlignment |
Specifies the alignment of a System.Drawing.Pen object in relation to the theoretical, zero-width line. |
PenType |
Specifies the type of fill a System.Drawing.Pen object uses to fill lines. |
PixelOffsetMode |
Specifies how pixels are offset during rendering. |
QualityMode |
Specifies the overall quality when rendering GDI+ objects. |
RegionData |
Encapsulates the data that makes up a System.Drawing.Region object. This class cannot be inherited. |
SmoothingMode |
Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas. |
WarpMode |
Specifies the type of warp transformation applied in a erload:System.Drawing.Drawing2D.GraphicsPath.Warp method. |
WrapMode |
Specifies how a texture or gradient is tiled when it is smaller than the area being filled. |