C# Class PixelArtUpscaler.Image.SVGDocument

ファイルを表示 Open project: michaelrbk/pixelart-vectorizer Class Usage Examples

Public Methods

Method Description
CloseGroup ( ) : void
DrawCellBorder ( bool draw ) : void
DrawCircle ( Color fillColor, Color strokeColor, double strokeThickness, double X, double Y, double radius ) : void
DrawEllipse ( Color fillColor, Color strokeColor, double strokeThickness, Point centre, double radiusX, double radiusY ) : void
DrawLine ( Color color, double strokeThickness, double x1, double y1, double x2, double y2 ) : void
DrawPath ( Color fillColor, Color strokeColor, double strokeThickness, string data ) : void
DrawPolygon ( Color fillColor, Color strokeColor, double strokeThickness, string data ) : void
DrawRectangle ( Color fillColor, Color strokeColor, double strokeThickness, double X, double Y, double width, double height ) : void
DrawText ( string text, double emSize, Color foreground, Point origin ) : void
SVGDocument ( ) : System
SVGDocument ( double width, double height ) : System
Save ( string path ) : void
StartGroup ( ) : void

Private Methods

Method Description
Color2String ( Color c ) : string
String2Color ( string sColor ) : Color

Method Details

CloseGroup() public method

public CloseGroup ( ) : void
return void

DrawCellBorder() public method

public DrawCellBorder ( bool draw ) : void
draw bool
return void

DrawCircle() public method

public DrawCircle ( Color fillColor, Color strokeColor, double strokeThickness, double X, double Y, double radius ) : void
fillColor Color
strokeColor Color
strokeThickness double
X double
Y double
radius double
return void

DrawEllipse() public method

public DrawEllipse ( Color fillColor, Color strokeColor, double strokeThickness, Point centre, double radiusX, double radiusY ) : void
fillColor Color
strokeColor Color
strokeThickness double
centre Point
radiusX double
radiusY double
return void

DrawLine() public method

public DrawLine ( Color color, double strokeThickness, double x1, double y1, double x2, double y2 ) : void
color Color
strokeThickness double
x1 double
y1 double
x2 double
y2 double
return void

DrawPath() public method

public DrawPath ( Color fillColor, Color strokeColor, double strokeThickness, string data ) : void
fillColor Color
strokeColor Color
strokeThickness double
data string
return void

DrawPolygon() public method

public DrawPolygon ( Color fillColor, Color strokeColor, double strokeThickness, string data ) : void
fillColor Color
strokeColor Color
strokeThickness double
data string
return void

DrawRectangle() public method

public DrawRectangle ( Color fillColor, Color strokeColor, double strokeThickness, double X, double Y, double width, double height ) : void
fillColor Color
strokeColor Color
strokeThickness double
X double
Y double
width double
height double
return void

DrawText() public method

public DrawText ( string text, double emSize, Color foreground, Point origin ) : void
text string
emSize double
foreground Color
origin Point
return void

SVGDocument() public method

public SVGDocument ( ) : System
return System

SVGDocument() public method

public SVGDocument ( double width, double height ) : System
width double
height double
return System

Save() public method

public Save ( string path ) : void
path string
return void

StartGroup() public method

public StartGroup ( ) : void
return void