Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
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.Drawing2D Namespace

Updated: November 2007

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.

Class category

Details

  • Graphics and Graphics paths

The GraphicsState and GraphicsContainer classes report information about the current Graphics object. GraphicsPath classes represent a series of lines and curves. The GraphicsPathIterator and PathData classes provide detailed information about the contents of a GraphicsPath object.

  • Matrix and transformation related types

The Matrix class represents a matrix for geometric transforms. The MatrixOrder enumeration specifies the order for matrix transformations.

  • Brush classes

The PathGradientBrush and HatchBrush classes enable you to fill shapes with either a gradient, or hatch pattern, respectively.

  • Enumeration related to lines

The LineCap and CustomLineCap enumerations enable you to specify cap styles for a line. The, LineJoin enumeration enables you to specify how two lines are joined in a path. The PenAlignment enumeration enables you specify the alignment of the drawing tip, when you draw a line. The PenType enumeration specifies the pattern a line should be filled with.

  • Enumerations related to filling shapes and paths

The HatchStyle enumeration specifies fill styles for a HatchBrush. The Blend class specifies a blend pattern for a LinearGradientBrush. The FillMode enumeration specifies the fill style for a GraphicsPath.

stk4ffd5.alert_caution(en-us,VS.90).gifCaution:

Classes in the System.Drawing.Drawing2D namespace are not supported for use in a Windows or ASP.NET 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.

  ClassDescription
stk4ffd5.pubclass(en-us,VS.90).gifAdjustableArrowCap Represents an adjustable arrow-shaped line cap. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifBlend Defines a blend pattern for a LinearGradientBrush object. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifColorBlend Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifCustomLineCap Encapsulates a custom user-defined line cap.
stk4ffd5.pubclass(en-us,VS.90).gifGraphicsContainer Represents the internal data of a graphics container. This class is used when saving the state of a Graphics object using the BeginContainer and EndContainer methods. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifGraphicsPath Represents a series of connected lines and curves. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifGraphicsPathIterator Provides the ability to iterate through subpaths in a GraphicsPath and test the types of shapes contained in each subpath. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifGraphicsState Represents the state of a Graphics object. This object is returned by a call to the BeginContainer methods. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifHatchBrush Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifLinearGradientBrush Encapsulates a Brush with a linear gradient. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifMatrix Encapsulates a 3-by-3 affine matrix that represents a geometric transform. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifPathData Contains the graphical data that makes up a GraphicsPath object. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifPathGradientBrush Encapsulates a Brush object that fills the interior of a GraphicsPath object with a gradient. This class cannot be inherited.
stk4ffd5.pubclass(en-us,VS.90).gifRegionData Encapsulates the data that makes up a Region object. This class cannot be inherited.
  EnumerationDescription
stk4ffd5.pubenumeration(en-us,VS.90).gifCombineMode Specifies how different clipping regions can be combined.
stk4ffd5.pubenumeration(en-us,VS.90).gifCompositingMode Specifies how the source colors are combined with the background colors.
stk4ffd5.pubenumeration(en-us,VS.90).gifCompositingQuality Specifies the quality level to use during compositing.
stk4ffd5.pubenumeration(en-us,VS.90).gifCoordinateSpace Specifies the system to use when evaluating coordinates.
stk4ffd5.pubenumeration(en-us,VS.90).gifDashCap Specifies the type of graphic shape to use on both ends of each dash in a dashed line.
stk4ffd5.pubenumeration(en-us,VS.90).gifDashStyle Specifies the style of dashed lines drawn with a Pen object.
stk4ffd5.pubenumeration(en-us,VS.90).gifFillMode Specifies how the interior of a closed path is filled.
stk4ffd5.pubenumeration(en-us,VS.90).gifFlushIntention Specifies whether commands in the graphics stack are terminated (flushed) immediately or executed as soon as possible.
stk4ffd5.pubenumeration(en-us,VS.90).gifHatchStyle Specifies the different patterns available for HatchBrush objects.
stk4ffd5.pubenumeration(en-us,VS.90).gifInterpolationMode The InterpolationMode enumeration specifies the algorithm that is used when images are scaled or rotated.
stk4ffd5.pubenumeration(en-us,VS.90).gifLinearGradientMode Specifies the direction of a linear gradient.
stk4ffd5.pubenumeration(en-us,VS.90).gifLineCap Specifies the available cap styles with which a Pen object can end a line.
stk4ffd5.pubenumeration(en-us,VS.90).gifLineJoin Specifies how to join consecutive line or curve segments in a figure (subpath) contained in a GraphicsPath object.
stk4ffd5.pubenumeration(en-us,VS.90).gifMatrixOrder Specifies the order for matrix transform operations.
stk4ffd5.pubenumeration(en-us,VS.90).gifPathPointType Specifies the type of point in a GraphicsPath object.
stk4ffd5.pubenumeration(en-us,VS.90).gifPenAlignment Specifies the alignment of a Pen object in relation to the theoretical, zero-width line.
stk4ffd5.pubenumeration(en-us,VS.90).gifPenType Specifies the type of fill a Pen object uses to fill lines.
stk4ffd5.pubenumeration(en-us,VS.90).gifPixelOffsetMode Specifies how pixels are offset during rendering.
stk4ffd5.pubenumeration(en-us,VS.90).gifQualityMode Specifies the overall quality when rendering GDI+ objects.
stk4ffd5.pubenumeration(en-us,VS.90).gifSmoothingMode Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas.
stk4ffd5.pubenumeration(en-us,VS.90).gifWarpMode Specifies the type of warp transformation applied in a Warp method.
stk4ffd5.pubenumeration(en-us,VS.90).gifWrapMode Specifies how a texture or gradient is tiled when it is smaller than the area being filled.

Reference

Other Resources

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker