C# Class Praeclarum.Graphics.SvgGraphics

Inheritance: IGraphics
ファイルを表示 Open project: praeclarum/Praeclarum

Public Methods

Method Description
BeginDrawing ( ) : void
BeginEntity ( object entity ) : void
BeginLines ( bool rounded ) : void
Clear ( Color clearColor ) : void
DrawArc ( float cx, float cy, float radius, float startAngle, float endAngle, float w ) : void
DrawImage ( IImage img, float x, float y, float width, float height ) : void
DrawLine ( float sx, float sy, float ex, float ey, float w ) : void
DrawOval ( float x, float y, float width, float height, float w ) : void
DrawPolygon ( Polygon poly, float w ) : void
DrawRect ( float x, float y, float width, float height, float w ) : void
DrawRoundedRect ( float x, float y, float width, float height, float radius, float w ) : void
DrawString ( string s, float x, float y ) : void
DrawString ( string s, float x, float y, float width, float height, LineBreakMode lineBreak, TextAlignment align ) : void
EndDrawing ( ) : void
EndLines ( ) : void
FillArc ( float cx, float cy, float radius, float startAngle, float endAngle ) : void
FillOval ( float x, float y, float width, float height ) : void
FillPolygon ( Polygon poly ) : void
FillRect ( float x, float y, float width, float height ) : void
FillRoundedRect ( float x, float y, float width, float height, float radius ) : void
GetFontMetrics ( ) : IFontMetrics
ImageFromFile ( string filename ) : IImage
RestoreState ( ) : void
SaveState ( ) : void
Scale ( float sx, float sy ) : void
SetClippingRect ( float x, float y, float width, float height ) : void
SetColor ( Color c ) : void
SetFont ( Font f ) : void
SetGradient ( Gradient g ) : void
SvgGraphics ( Stream s, RectangleF viewBox ) : System
SvgGraphics ( TextWriter tw, Rectangle viewBox ) : System
SvgGraphics ( TextWriter tw, RectangleF viewBox ) : System
Translate ( float dx, float dy ) : void
WriteArc ( float cx, float cy, float radius, float startAngle, float endAngle, float w, string stroke, string strokeOp, string fill ) : void

Private Methods

Method Description
AddGradient ( Gradient g, RectangleF bounds ) : string
FormatColor ( Color c ) : string
Write ( string s ) : void
WriteLine ( string s ) : void

Method Details

BeginDrawing() public method

public BeginDrawing ( ) : void
return void

BeginEntity() public method

public BeginEntity ( object entity ) : void
entity object
return void

BeginLines() public method

public BeginLines ( bool rounded ) : void
rounded bool
return void

Clear() public method

public Clear ( Color clearColor ) : void
clearColor Color
return void

DrawArc() public method

public DrawArc ( float cx, float cy, float radius, float startAngle, float endAngle, float w ) : void
cx float
cy float
radius float
startAngle float
endAngle float
w float
return void

DrawImage() public method

public DrawImage ( IImage img, float x, float y, float width, float height ) : void
img IImage
x float
y float
width float
height float
return void

DrawLine() public method

public DrawLine ( float sx, float sy, float ex, float ey, float w ) : void
sx float
sy float
ex float
ey float
w float
return void

DrawOval() public method

public DrawOval ( float x, float y, float width, float height, float w ) : void
x float
y float
width float
height float
w float
return void

DrawPolygon() public method

public DrawPolygon ( Polygon poly, float w ) : void
poly Polygon
w float
return void

DrawRect() public method

public DrawRect ( float x, float y, float width, float height, float w ) : void
x float
y float
width float
height float
w float
return void

DrawRoundedRect() public method

public DrawRoundedRect ( float x, float y, float width, float height, float radius, float w ) : void
x float
y float
width float
height float
radius float
w float
return void

DrawString() public method

public DrawString ( string s, float x, float y ) : void
s string
x float
y float
return void

DrawString() public method

public DrawString ( string s, float x, float y, float width, float height, LineBreakMode lineBreak, TextAlignment align ) : void
s string
x float
y float
width float
height float
lineBreak LineBreakMode
align TextAlignment
return void

EndDrawing() public method

public EndDrawing ( ) : void
return void

EndLines() public method

public EndLines ( ) : void
return void

FillArc() public method

public FillArc ( float cx, float cy, float radius, float startAngle, float endAngle ) : void
cx float
cy float
radius float
startAngle float
endAngle float
return void

FillOval() public method

public FillOval ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

FillPolygon() public method

public FillPolygon ( Polygon poly ) : void
poly Polygon
return void

FillRect() public method

public FillRect ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

FillRoundedRect() public method

public FillRoundedRect ( float x, float y, float width, float height, float radius ) : void
x float
y float
width float
height float
radius float
return void

GetFontMetrics() public method

public GetFontMetrics ( ) : IFontMetrics
return IFontMetrics

ImageFromFile() public method

public ImageFromFile ( string filename ) : IImage
filename string
return IImage

RestoreState() public method

public RestoreState ( ) : void
return void

SaveState() public method

public SaveState ( ) : void
return void

Scale() public method

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

SetClippingRect() public method

public SetClippingRect ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

SetColor() public method

public SetColor ( Color c ) : void
c Color
return void

SetFont() public method

public SetFont ( Font f ) : void
f Font
return void

SetGradient() public method

public SetGradient ( Gradient g ) : void
g Gradient
return void

SvgGraphics() public method

public SvgGraphics ( Stream s, RectangleF viewBox ) : System
s Stream
viewBox RectangleF
return System

SvgGraphics() public method

public SvgGraphics ( TextWriter tw, Rectangle viewBox ) : System
tw System.IO.TextWriter
viewBox Rectangle
return System

SvgGraphics() public method

public SvgGraphics ( TextWriter tw, RectangleF viewBox ) : System
tw System.IO.TextWriter
viewBox RectangleF
return System

Translate() public method

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

WriteArc() public method

public WriteArc ( float cx, float cy, float radius, float startAngle, float endAngle, float w, string stroke, string strokeOp, string fill ) : void
cx float
cy float
radius float
startAngle float
endAngle float
w float
stroke string
strokeOp string
fill string
return void