C# Class _ExampleController.Watermark

Afficher le fichier Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Méthodes publiques

Свойство Type Description
paths List

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
Résultat void

SyntaxToPath() public méthode

public SyntaxToPath ( string PathSyntax ) : GraphicsPath
PathSyntax string
Résultat System.Drawing.Drawing2D.GraphicsPath

Watermark() public méthode

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.
Résultat System

Property Details

paths public_oe property

public List paths
Résultat List