Skip to main content

ImmediateDrawingContext Methods

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.
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets 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.
ToString()Returns a string that represents the current object.
(Inherited from Object)
TryGetFeature(Type) 

See Also

Reference

ImmediateDrawingContext Class
Avalonia.Media Namespace