NoesisGUI
 

🔹 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.

Inheritance Hierarchy

DrawingContext

📚 Class Hierarchy Index

Properties

DrawingContext has no properties

Attached Properties

DrawingContext has no attached properties

Methods

Name Description
 DrawEllipse(Brush*, Pen*, const Point&, float, float) 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*, const Rect&) Draws an image into the region defined by the specified Rect
 DrawLine(Pen*, const Point&, const Point&) Draws a line between the specified points using the specified Pen
 DrawMesh(Brush*, MeshData*) Draws the specified triangular mesh using the specified Brush
 DrawRectangle(Brush*, Pen*, const Rect&) Draws a rectangle with the specified Brush and Pen
 DrawRoundedRectangle(Brush*, Pen*, const Rect&, float, float) Draws a rounded rectangle with the specified Brush and Pen
 DrawText(FormattedText*, const Point&) 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(BlendingMode) Pushes the specified Blending mode
 PushClip(Geometry*) Pushes the specified clip region onto the drawing context
 PushTransform(Transform*) Pushes the specified Transform onto the drawing context

Events

DrawingContext has no events

 
© 2017 Noesis Technologies