IRenderingContext Methods |
The IRenderingContext type exposes the following members.
| Name | Description | |
|---|---|---|
| DrawEllipse |
Draw an ellipse which may be filled, outlined
or both.
|
|
| DrawImage |
Draw a raster image into a particular
rectangle.
|
|
| DrawLine |
Draw a line using a specific Pen.
|
|
| DrawPath |
Draw a path which may be filled, outlined or
both.
|
|
| DrawRectangle |
Draw a rectangle which may be filled, outlined
or both.
|
|
| DrawText |
Draw text from a TextRun at a specific
Point.
|
|
| FrameEnd |
Lets you know when a frame has just been
rendered. You can use this for linking semantic information with
drawing instructions.
|
|
| FrameStart |
Lets you know when a frame is about to be
rendered. You can use this for linking semantic information with
drawing instructions.
|
|
| PopClip |
Pop the clip state, restoring to the last clip
rect.
|
|
| 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.
|