C# Class Svg.SvgRenderer

Inheritance: IDisposable
Mostra file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
DrawImage ( Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit graphicsUnit ) : void
DrawImageUnscaled ( Image image, Point location ) : void
DrawPath ( Pen pen, GraphicsPath path ) : void
FillPath ( Brush brush, GraphicsPath path ) : void
FromGraphics ( Graphics graphics ) : SvgRenderer

Creates a new SvgRenderer from the specified Graphics.

FromImage ( Image image ) : SvgRenderer

Creates a new SvgRenderer from the specified Image.

MeasureString ( string text, Font font ) : SizeF
RotateTransform ( float fAngle ) : void
RotateTransform ( float fAngle, MatrixOrder order ) : void
Save ( ) : void
ScaleTransform ( float sx, float sy ) : void
ScaleTransform ( float sx, float sy, MatrixOrder order ) : void
SetClip ( Region region ) : void
TranslateTransform ( float dx, float dy ) : void
TranslateTransform ( float dx, float dy, MatrixOrder order ) : void

Private Methods

Method Description
SvgRenderer ( ) : System

Initializes a new instance of the SvgRenderer class.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

DrawImage() public method

public DrawImage ( Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit graphicsUnit ) : void
image Image
destRect System.Drawing.RectangleF
srcRect System.Drawing.RectangleF
graphicsUnit GraphicsUnit
return void

DrawImageUnscaled() public method

public DrawImageUnscaled ( Image image, Point location ) : void
image Image
location Point
return void

DrawPath() public method

public DrawPath ( Pen pen, GraphicsPath path ) : void
pen System.Drawing.Pen
path System.Drawing.Drawing2D.GraphicsPath
return void

FillPath() public method

public FillPath ( Brush brush, GraphicsPath path ) : void
brush System.Drawing.Brush
path System.Drawing.Drawing2D.GraphicsPath
return void

FromGraphics() public static method

Creates a new SvgRenderer from the specified Graphics.
public static FromGraphics ( Graphics graphics ) : SvgRenderer
graphics System.Drawing.Graphics The to create the renderer from.
return SvgRenderer

FromImage() public static method

Creates a new SvgRenderer from the specified Image.
public static FromImage ( Image image ) : SvgRenderer
image Image from which to create the new .
return SvgRenderer

MeasureString() public method

public MeasureString ( string text, Font font ) : SizeF
text string
font System.Drawing.Font
return System.Drawing.SizeF

RotateTransform() public method

public RotateTransform ( float fAngle ) : void
fAngle float
return void

RotateTransform() public method

public RotateTransform ( float fAngle, MatrixOrder order ) : void
fAngle float
order MatrixOrder
return void

Save() public method

public Save ( ) : void
return void

ScaleTransform() public method

public ScaleTransform ( float sx, float sy ) : void
sx float
sy float
return void

ScaleTransform() public method

public ScaleTransform ( float sx, float sy, MatrixOrder order ) : void
sx float
sy float
order MatrixOrder
return void

SetClip() public method

public SetClip ( Region region ) : void
region System.Drawing.Region
return void

TranslateTransform() public method

public TranslateTransform ( float dx, float dy ) : void
dx float
dy float
return void

TranslateTransform() public method

public TranslateTransform ( float dx, float dy, MatrixOrder order ) : void
dx float
dy float
order MatrixOrder
return void