DrawingContext Class

Namespace
Avalonia.Media
Interfaces
  • IDisposable
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IDisposable"] Type["DrawingContext"] class Type type-node

Syntax

public sealed class DrawingContext : IDisposable

Constructors

Properties

Name Value Summary
CurrentContainerTransform Matrix
CurrentTransform Matrix
Gets the current transform of the drawing context.
PlatformImpl IDrawingContextImpl

Methods

Name Value Summary
Custom(ICustomDrawOperation) void
Draws a custom drawing operation
Dispose() void
Disposes of any resources held by the DrawingContext.
DrawGeometry(IBrush, IPen, Geometry) void
Draws a geometry.
DrawGeometry(IBrush, IPen, IGeometryImpl) void
Draws a geometry.
DrawGlyphRun(IBrush, GlyphRun) void
Draws a glyph run.
DrawImage(IImage, Rect) void
Draws an image.
DrawImage(IImage, Rect, Rect, BitmapInterpolationMode) void
Draws an image.
DrawLine(IPen, Point, Point) void
Draws a line.
DrawRectangle(IBrush, IPen, Rect, double, double, BoxShadows) void
Draws a rectangle with the specified Brush and Pen.
DrawRectangle(IPen, Rect, float) void
Draws the outline of a rectangle.
DrawText(IBrush, Point, FormattedText) void
Draws text.
FillRectangle(IBrush, Rect, float) void
Draws a filled rectangle.
PushClip(Rect) DrawingContext.PushedState
Pushes a clip rectangle.
PushClip(RoundedRect) DrawingContext.PushedState
PushGeometryClip(Geometry) DrawingContext.PushedState
Pushes a clip geometry.
PushOpacity(double) DrawingContext.PushedState
Pushes an opacity value.
PushOpacityMask(IBrush, Rect) DrawingContext.PushedState
Pushes an opacity mask.
PushPostTransform(Matrix) DrawingContext.PushedState
Pushes a matrix post-transformation.
PushPreTransform(Matrix) DrawingContext.PushedState
Pushes a matrix pre-transformation.
PushSetTransform(Matrix) DrawingContext.PushedState
Sets the current matrix transformation.
PushTransformContainer() DrawingContext.PushedState
Pushes a new transform context.