C# Class _ExampleController.Watermark

Datei anzeigen Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Public Properties

Property Type Description
paths List

Public Methods

Method Description
Draw ( Graphics g ) : void
SyntaxToPath ( string PathSyntax ) : GraphicsPath
Watermark ( string FilePath, float TargetSize ) : System

Load a watermark from paths, and scale to the target size

Private Methods

Method Description
GetPointStr ( string x, string y ) : PointF
GetPointStrOff ( string x, string y, PointF last_point ) : PointF
LoadPaths ( ) : void

Load a set of paths. This should be re-written to load from a file.

LoadPathsFromXAML ( string filepath ) : void
ProcessLine ( string line ) : void
ScaleAndFlatten ( float TargetSize ) : void

Resize and reduce to lines (trading extra memory size for better rendering speed)

Tokenize ( string PathSyntax ) : List
p2s ( PointF last_point ) : SizeF

Method Details

Draw() public method

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
return void

SyntaxToPath() public method

public SyntaxToPath ( string PathSyntax ) : GraphicsPath
PathSyntax string
return System.Drawing.Drawing2D.GraphicsPath

Watermark() public method

Load a watermark from paths, and scale to the target size
public Watermark ( string FilePath, float TargetSize ) : System
FilePath string
TargetSize float Minimum dimension. Watermark is scaled so that either height or width is /// equal to this size. Aspect is maintained.
return System

Property Details

paths public_oe property

public List paths
return List