Skip to main content

DrawingContext Class

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public abstract class DrawingContext : IDisposable
View Source
InheritanceObject → DrawingContext
ImplementsIDisposable

Methods

Custom(ICustomDrawOperation)Draws a custom drawing operation
Dispose()Releases all resources used by the DrawingContext
DisposeCore() 
DrawEllipse(IBrush, IPen, Rect)Draws an ellipse with the specified Brush and Pen.
DrawEllipse(IBrush, IPen, Point, Double, Double)Draws an ellipse with the specified Brush and Pen.
DrawEllipseCore(IBrush, IPen, Rect) 
DrawGeometry(IBrush, IPen, Geometry)Draws a geometry.
DrawGlyphRun(IBrush, GlyphRun)Draws a glyph run.
DrawImage(IImage, Rect)Draws an image.
DrawImage(IImage, Rect, Rect)Draws an image.
DrawLine(IPen, Point, Point)Draws a line.
DrawLineCore(IPen, Point, Point) 
DrawRectangle(IPen, Rect, Single)Draws the outline of a rectangle.
DrawRectangle(IBrush, IPen, RoundedRect, BoxShadows)Draws a rectangle with the specified Brush and Pen.
DrawRectangle(IBrush, IPen, Rect, Double, Double, BoxShadows)Draws a rectangle with the specified Brush and Pen.
DrawRectangleCore(IBrush, IPen, RoundedRect, BoxShadows) 
DrawText(FormattedText, Point)Draws text.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FillRectangle(IBrush, Rect, Single)Draws a filled rectangle.
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
PopClipCore() 
PopGeometryClipCore() 
PopOpacityCore() 
PopOpacityMaskCore() 
PopRenderOptionsCore() 
PopTransformCore() 
PushClip(Rect)Pushes a clip rectangle.
PushClip(RoundedRect)Pushes a clip rectangle.
PushClipCore(Rect) 
PushClipCore(RoundedRect) 
PushGeometryClip(Geometry)Pushes a clip geometry.
PushGeometryClipCore(Geometry) 
PushOpacity(Double)Pushes an opacity value.
PushOpacityCore(Double) 
PushOpacityMask(IBrush, Rect)Pushes an opacity mask.
PushOpacityMaskCore(IBrush, Rect) 
PushRenderOptions(RenderOptions)Pushes render options.
PushRenderOptionsCore(RenderOptions) 
PushTransform(Matrix)Pushes a matrix transformation.
PushTransformCore(Matrix) 
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Media Namespace