IRenderingContext Methods

The IRenderingContext type exposes the following members.

Methods
  Name Description
Public method DrawEllipse
Draw an ellipse which may be filled, outlined or both.
Public method DrawImage
Draw a raster image into a particular rectangle.
Public method DrawLine
Draw a line using a specific Pen.
Public method DrawPath
Draw a path which may be filled, outlined or both.
Public method DrawRectangle
Draw a rectangle which may be filled, outlined or both.
Public method DrawText
Draw text from a TextRun at a specific Point.
Public method FrameEnd
Lets you know when a frame has just been rendered. You can use this for linking semantic information with drawing instructions.
Public method FrameStart
Lets you know when a frame is about to be rendered. You can use this for linking semantic information with drawing instructions.
Public method PopClip
Pop the clip state, restoring to the last clip rect.
Public method PushClip
Push the clip state then assign a new clip rect. Typically you will hold the clip state in a Stack of Rects, pusshing and popping as PushClip and PopClip are called. To determine the new rect simply intersect the Rect on the top of the stack with the one supplied in PushClip. When drawing you need to ensure that any drawing you do is clipped to the Rect at the top of the stack - if any.
Top
See Also