[]
Pure IDrawingCanvas implementation which allows you to save the drawing into stream
and then re-draw on to arbitrary IDrawingCanvas. It is for creation of temporary storage of preview pages.
Each IDrawingCanvas's method call turns into the single or multiple CanvasItem which written than to the IMetaCanvasItemWriter
DrawImage calls also stores image content into separated storage IImageWriter.
public class MetaCanvas : IDrawingCanvas, IDisposable
Name | Description |
---|---|
MetaCanvas(IMetaCanvasItemWriter, IImageWriter, Func<Stream, SizeF>) |
Name | Description |
---|---|
SmoothingMode | Specifies the rendering quality for lines, curves, and the edges of filled areas. |
TextRenderingHint | Specifies the quality of text rendering. |
Transform | Gets or sets the world transformation for this object |
Name | Description |
---|---|
AddItem(CanvasItem) | |
ConvertBrush(IDrawingCanvas, BrushEx) | |
CreateHatchBrush(HatchStyleEx, Color, Color) | Initializes a new BrushEx using specified hatch pattern and colors. |
CreateImage(ImageInfo) | Initializes a new instance of ImageEx. |
CreateImage(ImageInfo, string) | Initializes a new instance of ImageEx and supplies a unique id for which the IDrawingCanvas can implement caching. |
CreateLinearGradientBrush(PointF, PointF, Color, Color, BlendEx) | Initializes a new BrushEx linear gradient brush object. |
CreateLinearGradientBrush(PointF, PointF, Color, Color, IEnumerable<GradientStopColor>) | Create linear gradient brush |
CreatePen(Color) | Initializes a new instance of PenEx with the specified color and default width |
CreatePen(Color, float) | Initializes a new instance of PenEx with the specified color and width |
CreateRadialGradientBrush(PointF, float, float, Color, Color) | Creates new radial gradient BrushEx. |
CreateSolidBrush(Color) | Initializes a new BrushEx solid brush object of specified color. |
Dispose() | |
Draw(IDrawingCanvas, IEnumerable<CanvasItem>, IImageStore, Func<CanvasItem, bool>) | |
DrawAndFillPath(PenEx, BrushEx, PathEx) | Fills the path supplied with brush, and strokes it with pen. If brush or pen is null, corresponding operation is omitted. |
DrawCanvasItem(IDrawingCanvas, IImageStore, CanvasItem) | |
DrawEllipse(PenEx, RectangleF) | Draws an ellipse defined by a bounding RectangleF. |
DrawImage(ImageEx, float, float, float, float, float) | Draws the specified Image object with specified size, at the specified location. |
DrawLine(PenEx, PointF, PointF) | Draws the line between specified points. |
DrawLines(PenEx, PointF[]) | Draws a series of line segments that connect an array of PointF structures. |
DrawPolygon(PenEx, PointF[]) | Draws a polygon defined by an array of PointF structures |
DrawRectangle(PenEx, RectangleF) | Draws a rectangle rectangle specified by a RectangleF structure. |
DrawString(string, FontInfo, BrushEx, RectangleF, StringFormatEx) | Draws the specified text string at the specified location with the specified Brush and Font objects. using the specified layout rectangle and formatting attributes of the specified StringFormat object. |
FillEllipse(BrushEx, RectangleF) | Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure. |
FillPolygon(BrushEx, PointF[]) | Fills the interior of a polygon defined by an array of points specified by PointF structures |
FillRectangle(BrushEx, RectangleF) | Fills the interior of a rectangle specified by a RectangleF structure. |
IntersectClip(PathEx) | Sets the clipping region of this Graphics object to the shape specified by a IDDPath structure. |
IntersectClip(RectangleF) | Sets the clipping region of this Graphics object to the rectangle specified by a RectangleF structure. |
PopState() | Restores the state of this IDrawingCanvas object to the previous saved state. |
PushState() | Saves the current state on a stack. |