GraphicsCache Methods
Provides methods to paint on drawing surfaces in GDI+ and DirectX modes (see DirectX hardware acceleration). Provides storage for pens, fonts and brushes.
Name | Description |
---|---|
CalcClipRectangle(Rectangle) | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
CalcDefaultTextSize(Font) | This member supports the internal infrastructure, and is not intended to be used directly from your code. |
CalcRectangle(Rectangle) | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
CalcTextSize(String, Font, SizeF) | Calculates the size of the specified string when it’s drawn with the specified font. |
CalcTextSize(String, Font, StringFormat, SizeF) | Calculates the size of the specified string when it’s drawn with the specified font and using the specified formatting. |
CalcTextSize(String, Font, StringFormat, Int32, Int32, out Boolean) | Calculates the size of the specified string when it’s drawn with the specified font and using the specified formatting, fitting the string into a clipping rectangle. Allows you to determine whether the string does not fit the clipping rectangle. |
CalcTextSize(String, Font, StringFormat, Int32, Int32) | Calculates the size of the specified string when it’s drawn with the specified font and formatting, fitting the string into a clipping rectangle. |
CalcTextSize(String, Font, StringFormat, Int32) | Calculates the size of the specified string when it is drawn with the specified font and formatting. |
CalcTextSize(String, Font, Int32) | Calculates the size of the specified string when it’s drawn with the specified font. |
CalcTextSize(String, Font) | Calculates the size of the specified string when it’s drawn with the specified font. |
CalcVTextSize(String, Font, SizeF) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
CalcVTextSize(String, Font, StringFormat, SizeF) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
CalcVTextSize(String, Font, StringFormat, Int32, Int32, out Boolean) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
CalcVTextSize(String, Font, StringFormat, Int32, Int32) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
CalcVTextSize(String, Font, StringFormat, Int32) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
CalcVTextSize(String, Font, Int32) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
CalcVTextSize(String, Font) | Calculates the size of the specified string when it is drawn vertically with the specified font and format. |
Clear() | Clears the internal hash tables that store the pens, fonts and, solid and linear gradient brushes that have recently been used. |
Clear(Color) | Clears the entire drawing surface and fills it with the specified background color. |
CreateMatrix() | Returns a 3-by-3 affine matrix that represents a geometric transform. |
CreateMatrix(Single, Single, Single, Single, Single, Single) | Returns a 3-by-3 affine matrix that represents a geometric transform. |
CreatePath() | Returns a new series of connected lines and curves. |
CreateRoundedRectangle(Rectangle, CornerRadius) | Creates a rectangular path with rounded corners. |
Dispose() | Releases all resources used by this GraphicsCache object. |
DrawArc(Pen, Rectangle, Single, Single) | Draws an arc representing a portion of an ellipse specified by a Rectangle structure. |
DrawArc(Pen, RectangleF, Single, Single) | Draws an arc representing a portion of an ellipse specified by a RectangleF structure. |
DrawArc(Pen, Int32, Int32, Int32, Int32, Int32, Int32) | Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. |
DrawArc(Pen, Single, Single, Single, Single, Single, Single) | Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. |
DrawBezier(Pen, Point, Point, Point, Point) | Draws a Bezier spline defined by four Point structures. |
DrawBezier(Pen, PointF, PointF, PointF, PointF) | Draws a Bezier spline defined by four PointF structures. |
DrawBezier(Pen, Single, Single, Single, Single, Single, Single, Single, Single) | Draws a Bezier spline defined by four ordered pairs of coordinates that represent points. |
DrawBeziers(Pen, Point[]) | Draws a series of Bezier splines from an array of Point structures. |
DrawBeziers(Pen, PointF[]) | Draws a series of Bezier splines from an array of PointF structures. |
DrawEllipse(Pen, Rectangle) | Draws an ellipse specified by a bounding Rectangle structure. |
DrawEllipse(Pen, RectangleF) | Draws an ellipse specified by a bounding RectangleF structure. |
DrawEllipse(Int32, Int32, Int32, Int32, Color, Int32) | Draws an ellipse defined by a bounding rectangle specified by the rectangle upper-left corner coordinates, a height, and a width. |
DrawEllipse(Single, Single, Single, Single, Color, Int32) | Draws an ellipse defined by a bounding rectangle specified by a coordinate pair, a height, and a width. |
DrawFocusRectangle(Graphics, Rectangle, Color, Color) | Draws a focus rectangle on the specified graphics surface and within the specified bounds. |
DrawFocusRectangle(Rectangle, Color, Color) | Draws a focus rectangle within the specified bounds. |
DrawIcon(Icon, Rectangle) | Draws the image represented by the specified Icon within the area specified by a Rectangle structure. |
DrawIcon(Icon, Int32, Int32) | Draws the image represented by the specified Icon at the specified coordinates. |
DrawIconUnstretched(Icon, Rectangle) | Draws the image represented by the specified Icon without scaling the image. |
DrawImage(Image, Point) | Draws the Image at the specified location and with the specified size. |
DrawImage(Image, Point[], Rectangle, GraphicsUnit) | Draws the specified Image portion at the specified location and with the specified size. |
DrawImage(Image, Point[], Rectangle, ColorMatrix) | Draws the Image portion at the specified location and with the specified size. |
DrawImage(Image, Point[]) | Draws the specified Image at the specified location and with the specified shape and size. |
DrawImage(Image, PointF) | Draws the Image with its original physical size and at the specified location. |
DrawImage(Image, PointF[], RectangleF, GraphicsUnit) | Draws the Image portion at the specified location and with the specified size. |
DrawImage(Image, PointF[], RectangleF, ColorMatrix) | Draws the portion of the specified Image at the specified location and with the specified size. |
DrawImage(Image, PointF[]) | Draws the specified Image at the specified location and with the specified shape and size. |
DrawImage(Image, Rectangle, Rectangle, Boolean) | Draws the specified Image portion with the specified size. |
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit) | Draws the portion of the specified Image at the specified location and with the specified size. |
DrawImage(Image, Rectangle, Rectangle, ColorMatrix) | Draws the portion of the specified Image at the specified location and with the specified size. |
DrawImage(Image, Rectangle, Rectangle, ImageAttributes) | Draws the specified Image portion at the specific coordinates and with the specified attributes and size. |
DrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit) | Draws an Image portion at the specified location and with the specified size. |
DrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit) | Draws an Image portion at the specified location and with the specified size. |
DrawImage(Image, Rectangle, Single, Single, Single, Single, ColorMatrix) | Draws an Image portion at the specified location and with the specified size. |
DrawImage(Image, Rectangle) | Draws the specified Image at the specified location and with the specified size. |
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit) | Draws an Image portion at the specified location and with the specified size. |
DrawImage(Image, RectangleF) | Draws the Image at the specified location and with the specified size. |
DrawImage(Image, Int32, Int32, Rectangle, Boolean) | Draws the specified Image portion at the specific coordinates and with the specified size. |
DrawImage(Image, Int32, Int32, Rectangle, GraphicsUnit) | Draws an image portion at a specified location. |
DrawImage(Image, Int32, Int32, Int32, Int32) | Draws the given images at specific coordinates and with specific size. |
DrawImage(Image, Int32, Int32) | Draws the specified Image with its original physical size, at the location specified by a coordinate pair. |
DrawImage(Image, Single, Single, RectangleF, GraphicsUnit) | Draws an image portion at the specified location. |
DrawImage(Image, Single, Single, Single, Single) | Draws the Image at the specific location and with the specific size. |
DrawImage(Image, Single, Single) | Draws the Image using its original physical size and at the specified location. |
DrawImageUnsafe(Image, Rectangle, Single, Single, Single, Single, ColorMatrix) | |
DrawImageUnscaled(Image, Point) | Draws an image at the specific location using its original physical size. |
DrawImageUnscaled(Image, Rectangle) | Draws an image at the specific location using its original physical size. |
DrawImageUnscaled(Image, Int32, Int32, Int32, Int32) | Draws an image at the specific location using its original physical size. |
DrawImageUnscaled(Image, Int32, Int32) | Draws an image using its original physical size at the location specified by a coordinate pair. |
DrawLine(Pen, Point, Point) | Draws a line on the current painting surface connecting two Point structures. |
DrawLine(Pen, PointF, PointF) | Draws a line connecting two PointF structures. |
DrawLine(Point, Point, Color, Int32) | Draws a line connecting two Point structures. |
DrawLine(PointF, PointF, Color, Int32) | Draws a line connecting two PointF structures. |
DrawLine(Int32, Int32, Int32, Int32, Color, Int32) | Draws a line connecting two Point structures. |
DrawLine(Single, Single, Single, Single, Color, Int32) | Draws a line connecting two PointF structures. |
DrawLines(Pen, Point[]) | |
DrawLines(Pen, PointF[]) | Draws a series of lines that connect given points. |
DrawLines(Point[], Color, Int32) | Draws a polygon defined by an array of Point structures. |
DrawLines(PointF[], Color, Int32) | Draws a polygon defined by an array of PointF structures. |
DrawPath(Pen, IDxGraphicsPath) | Draws a GraphicsPath. |
DrawPath(Pen, GraphicsPath) | Draws a GraphicsPath. |
DrawPie(Pen, Rectangle, Single, Single) | Draws a pie shape defined by an ellipse specified by a Rectangle structure and two radial lines. |
DrawPie(Pen, RectangleF, Single, Single) | Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines. |
DrawPie(Pen, Int32, Int32, Int32, Int32, Int32, Int32) | Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines. |
DrawPie(Pen, Single, Single, Single, Single, Single, Single) | Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines. |
DrawPolygon(Point[], Color, Int32) | Draws a polygon defined by an array of Point structures. |
DrawPolygon(PointF[], Color, Int32) | Draws a polygon defined by an array of PointF structures. |
DrawRectangle(Pen, Rectangle) | Draws a rectangle specified by a Rectangle structure. |
DrawRectangle(Pen, RectangleF) | Draws a Rectangle. |
DrawRectangle(Rectangle, Color, Int32) | Draws a rectangle specified by a Rectangle structure. |
DrawRectangle(Int32, Int32, Int32, Int32, Color, Int32) | Draws a rectangle specified by a pair of coordinates, a width, and a height. |
DrawRectangle(Single, Single, Single, Single, Color, Int32) | Draws a rectangle with the specified border color and thickness. |
DrawRectangles(Rectangle[], Color, Int32) | Draws a series of rectangles specified by Rectangle structures. |
DrawRectangles(RectangleF[], Color, Int32) | Draws a series of rectangles specified by RectangleF structures. |
DrawRoundedRectangle(Color, Int32, Rectangle, CornerRadius) | Draws a rectangle with rounded corners. |
DrawRoundedRectangle(Pen, Rectangle, CornerRadius) | Draws a rectangle with rounded corners. |
DrawString(String, Font, Brush, PointF, StringFormatInfo) | Draws the specified text string at the specified location with the specified Brush and Font objects using the specified formatting attributes. |
DrawString(String, Font, Brush, PointF, StringFormat) | Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat. |
DrawString(String, Font, Brush, PointF) | Draws the specified text string at the specified location with the specified Brush and Font objects. |
DrawString(String, Font, Brush, Rectangle, StringFormatInfo) | Draws the specified text string at the specified location with the specified Brush and Font objects using the specified formatting attributes. |
DrawString(String, Font, Brush, Rectangle, StringFormat) | Draws a text string at the specified position using the specified font, color and format. |
DrawString(String, Font, Brush, RectangleF, StringFormatInfo) | Draws a string with custom parameters. |
DrawString(String, Font, Brush, RectangleF) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects. |
DrawString(String, Font, Brush, Single, Single, StringFormatInfo) | Draws the specified text string at the specified location with the specified Brush and Font objects. |
DrawString(String, Font, Brush, Single, Single, StringFormat) | Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat. |
DrawString(String, Font, Brush, Single, Single) | Draws the specified text string at the specified location with the specified Brush and Font objects. |
DrawString(String, Font, Color, Rectangle, StringFormatInfo) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the specified formatting attributes. |
DrawString(String, Font, Color, Rectangle, StringFormat) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the specified formatting attributes. |
DrawString(String, Font, Color, RectangleF, StringFormatInfo) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the specified formatting attributes. |
DrawString(String, Font, Color, RectangleF, StringFormat) | Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat. |
DrawSvgImage(SvgImage, Point, ISvgPaletteProvider, Nullable<Single>) | Draws a vector image at the given coordinates. |
DrawSvgImage(SvgImage, Point, ISvgPaletteProvider) | Draws a vector image at the given coordinates. |
DrawSvgImage(SvgImage, Rectangle, ISvgPaletteProvider) | Draws a vector image |
DrawVString(String, Font, Brush, Rectangle, StringFormatInfo, Int32) | Draws a text string vertically with the specified angle and at the specified position using the specified font, color and format. |
DrawVString(String, Font, Brush, Rectangle, StringFormat, Int32) | Draws a text string vertically with the specified angle and at the specified position using the specified font, color and format. |
EnableDirectXPaint(DirectXPaint) | Allows the target painter to utilize the DirectX API. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
FillEllipse(Brush, RectangleF) | Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure. |
FillEllipse(Color, Rectangle) | Fills the interior of an ellipse defined by a bounding rectangle specified by a Rectangle structure. |
FillEllipse(Color, RectangleF) | Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure. |
FillEllipse(Int32, Int32, Int32, Int32, Color) | Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height. |
FillEllipse(Single, Single, Single, Single, Color) | Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height. |
FillPath(Brush, IDxGraphicsPath) | Fills the interior of a GraphicsPath. |
FillPath(Brush, GraphicsPath) | Fills the interior of a GraphicsPath. |
FillPie(Brush, Rectangle, Single, Single) | Fills the interior of a pie section defined by an ellipse specified by a Rectangle structure and two radial lines. |
FillPie(Brush, Int32, Int32, Int32, Int32, Int32, Int32) | Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines. |
FillPie(Brush, Single, Single, Single, Single, Single, Single) | Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines. |
FillPolygon(Point[], Color) | Fills the interior of a polygon defined by an array of points specified by Point structures. |
FillPolygon(PointF[], Color) | Fills the interior of a polygon defined by an array of points specified by PointF structures. |
FillRectangle(AppearanceObject, Rectangle) | Fills the interior of a rectangle specified by a Rectangle structure. |
FillRectangle(Brush, Rectangle) | Fills the interior of a rectangle specified by a Rectangle structure. |
FillRectangle(Brush, RectangleF) | Fills the interior of a rectangle specified by a RectangleF structure. |
FillRectangle(Brush, Int32, Int32, Int32, Int32) | Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height. |
FillRectangle(Brush, Single, Single, Single, Single) | Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height. |
FillRectangle(Color, Rectangle) | Fills the specified rectangular area with the specified color. |
FillRectangle(Color, RectangleF) | Fills the interior of a rectangle specified by a RectangleF structure. |
FillRectangles(Brush, RectangleF[]) | Fills the interiors of multiple rectangles. This method is the HDPI-compatible counterpart of the standard Graphics.FillRectangles method. |
FillRectangles(Color, Rectangle[]) | Fills the interiors of a series of rectangles specified by Rectangle structures. |
FillRectangles(Color, RectangleF[]) | Fills the interiors of a series of rectangles specified by RectangleF structures. |
FillRoundedRectangle(Color, Rectangle, CornerRadius) | Draws a rectangle with rounded corners and fills it with the specified color. |
GetFont(Font, FontStyle) | Gets a font object with the specified settings. |
GetGradientBrush(Rectangle, Color, Color, LinearGradientMode, Int32) | Returns a linear gradient brush with the specified settings. |
GetGradientBrush(Rectangle, Color, Color, LinearGradientMode) | Returns a linear gradient brush with specified settings. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetPen(Color, Int32) | Returns a pen with specified settings. |
GetPen(Color) | Returns the pixel-wide pen with a specified color. |
GetSolidBrush(Color) | Gets a solid brush with specified parameters. |
GetTransform() | Returns a copy of the geometric world transformation for the contained Graphics object. |
GetTransformMatrix() | Returns the GraphicsCache.TransformMatrix property value. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
IsNeedDrawRect(Rectangle) | Returns whether the region which is bounded by the specified rectangle needs to be redrawn. |
IsNeedDrawRectEx(Rectangle) | Returns whether the region which is bounded by the specified rectangle needs to be redrawn, taking into account clip regions, if any. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
MultiplyTransform(IDxMatrix, MatrixOrder) | |
PrepareClipRegion() | Retrieves clip regions from a display device context. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
ResetMatrix() | Resets a Matrix object used to perform geometric transformations. |
ResetTransform() | Resets the world transformation matrix of this Graphics to the identity matrix. See the ResetTransform() method description for more details. |
Restore(Object) | Restores the GraphicsCache to the required state. See the Restore method description for more information. |
RestoreClipRelease(GraphicsClipState) | |
RotateTransform(Single, MatrixOrder) | Applies the specified rotation to the transformation matrix of this GraphicsCache in the specified order. |
Save() | Saves the current state of this GraphicsCache object. |
SaveAndSetClip(RectangleF, Boolean) | |
SaveClip() | |
ScaleTransform(Single, Single, MatrixOrder) | Applies the scaling operation to the transformation matrix of this GraphicsCache object. See the ScaleTransform method for more information. |
SetActiveSkinInfo(UserLookAndFeel) | Copies the skin information from the LookAndFeel parameter into the GraphicsCache object. |
SetActiveSkinInfo(String, String) | Specifies the active skin and palette. |
SetClip(RectangleF, Boolean) | |
SetPathClip(GraphicsPath, CombineMode) | |
SetTransform(IDxMatrix) | Sets the specified matrix as the transformation matrix for this GraphicsCache. |
SetTransformMatrix(Matrix) | Sets the specified matrix as the transformation matrix for this GraphicsCache. |
ToString() | Returns a string that represents the current object. Inherited from Object. |
TranslateTransform(Single, Single, MatrixOrder) | Applies the translation to the transformation matrix to change the origin of the coordinate system. See the TranslateTransform method description for more information. |
See Also