IRenderingContext Interface

An interface that receives drawing commands and converts them into a desired output format.

Implement this interface to create new converters.

You can assume that all brushes will be solid and will specify a color in RGB and possibly Alpha.

For pens you need to implement an interface which uses the Brush, Width, DashCap (Flat and Round only) and DashPattern.

 

Namespace:  WebSupergoo.WordGlue4.Rendering
Assembly:  WordGlue4 (in WordGlue4.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public interface IRenderingContext

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