C# Class Nez.Svg.FauxGraphicsPath

THIS IS A HORRIBLE ABOMINATION! PCLs dont have access to System.Drawing so this class is a wrapper for accessing the GraphicsPath class. It has the full public API that Nez needs for SVG files but the whole mess is all accessed via reflection. It is slow as all hell and not recommended for production use. It's only purpose is so that Nez works with SVG files out of the box to get up and running fast.
显示文件 Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
AddBezier ( object first, object second, object third, object fourth ) : void
AddLine ( object first, object second ) : void
CloseFigure ( ) : void
FauxGraphicsPath ( ) : Microsoft.Xna.Framework
Flatten ( object matrix, float flatness ) : void
StartFigure ( ) : void
pathPointsAsVectors ( ) : Microsoft.Xna.Framework.Vector2[]

Method Details

AddBezier() public method

public AddBezier ( object first, object second, object third, object fourth ) : void
first object
second object
third object
fourth object
return void

AddLine() public method

public AddLine ( object first, object second ) : void
first object
second object
return void

CloseFigure() public method

public CloseFigure ( ) : void
return void

FauxGraphicsPath() public method

public FauxGraphicsPath ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

Flatten() public method

public Flatten ( object matrix, float flatness ) : void
matrix object
flatness float
return void

StartFigure() public method

public StartFigure ( ) : void
return void

pathPointsAsVectors() public method

public pathPointsAsVectors ( ) : Microsoft.Xna.Framework.Vector2[]
return Microsoft.Xna.Framework.Vector2[]