DrawingContext Class
namespace Noesis | MSDN
Describes visual content using draw, push, and pop commands during UIElement OnRender.
When you use a DrawingContext object's draw commands, you are actually storing a set of rendering instructions that will later be used by the graphics system; you are not drawing to the screen in real-time.
Properties
DrawingContext has no properties
Attached Properties
DrawingContext has no attached properties
Methods
Name | Description |
---|---|
DrawEllipse(brush, pen, center, rX, rY) | Draws an ellipse with the specified Brush and Pen |
DrawGeometry(brush, pen, geometry) | Draws the specified Geometry using the specified Brush and Pen |
DrawImage(imageSource, rect) | Draws an image into the region defined by the specified Rect |
DrawLine(pen, p0, p1) | Draws a line between the specified points using the specified Pen |
DrawRectangle(brush, pen, rect) | Draws a rectangle with the specified Brush and Pen |
DrawRoundedRectangle(brush, pen, rect, rX, rY) | Draws a rounded rectangle with the specified Brush and Pen |
DrawText(formattedText, bounds) | Draws formatted text at the specified location |
Pop() | Pops the last opacity mask, opacity, clip, effect, or transform operation that was pushed onto the drawing context |
PushBlendingMode(mode) | Pushes the specified Blending mode |
PushClip(clipGeometry) | Pushes the specified clip region onto the drawing context |
PushTransform(transform) | Pushes the specified Transform onto the drawing context |
Events
DrawingContext has no events
Table of Contents