Skip to main content
A newer version of this page is available. .

GraphicsCache Members

Provides methods to paint on drawing surfaces in GDI+ and DirectX modes (see DirectX hardware acceleration). Provides storage for pens, fonts and brushes.

Constructors

Name Description
GraphicsCache(DXPaintEventArgs, ScaleHelper) This value is assigned to the GraphicsCache.PaintArgs property.
GraphicsCache(DXPaintEventArgs, XPaint, ScaleHelper) This value is assigned to the GraphicsCache.PaintArgs property.
GraphicsCache(DXPaintEventArgs, XPaint) Initializes a new instance of the GraphicsCache class
GraphicsCache(DXPaintEventArgs) Initializes a new instance of the GraphicsCache class.
GraphicsCache(Graphics, ScaleHelper) This value is assigned to the GraphicsCache.PaintArgs property.
GraphicsCache(Graphics) Creates an instance of the GraphicsCache class.
GraphicsCache(PaintEventArgs, ScaleHelper) Initializes a new instance of the GraphicsCache class with the specified settings.
GraphicsCache(PaintEventArgs, XPaint) Creates an instance of the GraphicsCache class.
GraphicsCache(PaintEventArgs) Initializes a new instance of the GraphicsCache class.

Properties

Name Description
ActiveSkinName Returns the name of a currently applied Application Skin.
ActiveSvgPaletteName Returns the name of an active skin palette.
AllowDrawInvisibleRect This member supports the internal infrastructure, and is not intended to be used directly from your code.
Cache This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ClipInfo This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
CompositingMode Gets a value that specifies how composited images are drawn to the cached GraphicsCache.Graphics.
CompositingQuality Gets or sets the rendering quality of composited images drawn to the cached GraphicsCache.Graphics.
Graphics Gets an object that serves as the painting surface and provides painting facilities.
InterpolationMode Gets or sets the interpolation mode associated with the cached GraphicsCache.Graphics.
Offset This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
OffsetEx This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Paint Gets or sets a DevExpress.Utils.Paint.XPaint object.
PaintArgs Gets an object providing information for painting.
PixelOffsetMode Gets or set a value specifying how pixels are offset during rendering of the cached GraphicsCache.Graphics.
ScaleDPI Gets or sets the ScaleHelper object that adjusts font sizes and drawing API values according to the current DPI.
SmoothingMode Gets or sets the rendering quality for the cached GraphicsCache.Graphics.
TextRenderingHint Gets or sets the rendering mode for text associated with the cached GraphicsCache.Graphics.
TransformMatrix This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
UseDirectXPaint Returns whether or not the application currently uses the DirectX Hardware Acceleration.

Methods

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’s drawn with the specified font and using the specified 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.
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.
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.
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)
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.
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(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(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, 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(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.
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) 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.
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(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, 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(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.
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.
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.
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.
SetActiveSkinInfo(UserLookAndFeel) Copies the skin information from the LookAndFeel parameter into the GraphicsCache object.
SetActiveSkinInfo(String, String) Specifies the GraphicsCache GraphicsCache.ActiveSkinName and GraphicsCache.ActiveSvgPaletteName properties.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also