ImmediateDrawingContext Class

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public sealed class ImmediateDrawingContext : IDisposable, 
	IOptionalFeatureProvider
Inheritance
Object    ImmediateDrawingContext
Implements
IOptionalFeatureProvider, IDisposable

Properties

CurrentTransform Gets the current transform of the drawing context.
PlatformImpl 

Methods

Dispose Disposes of any resources held by the DrawingContext.
DrawBitmap(Bitmap, Rect) Draws an bitmap.
DrawBitmap(Bitmap, Rect, Rect) Draws an image.
DrawEllipse(IImmutableBrush, ImmutablePen, Point, Double, Double) Draws an ellipse with the specified Brush and Pen.
DrawGlyphRun(IImmutableBrush, IImmutableGlyphRunReference) Draws a glyph run.
DrawLine(ImmutablePen, Point, Point) Draws a line.
DrawRectangle(ImmutablePen, Rect, Single) Draws the outline of a rectangle.
DrawRectangle(IImmutableBrush, ImmutablePen, Rect, Double, Double, BoxShadows) Draws a rectangle with the specified Brush and Pen.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FillRectangle(IImmutableBrush, Rect, Single) Draws a filled rectangle.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
PushClip(Rect) Pushes a clip rectangle.
PushClip(RoundedRect) 
PushOpacity(Double, Rect) Pushes an opacity value.
PushOpacityMask(IImmutableBrush, Rect) Pushes an opacity mask.
PushPostTransform(Matrix) Pushes a matrix post-transformation.
PushPreTransform(Matrix) Pushes a matrix pre-transformation.
PushSetTransform(Matrix) Sets the current matrix transformation.
PushTransformContainer Pushes a new transform context.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetFeature(Type) 

Extension Methods

TryGetFeatureT Queries for an optional feature.
(Defined by OptionalFeatureProviderExtensions)
TryGetFeatureT(T) Queries for an optional feature.
(Defined by OptionalFeatureProviderExtensions)

See Also