C# Class HandInput.Util.VisualUtil

Utility functions for visualization.
Afficher le fichier Open project: ushadow/handinput

Méthodes publiques

Méthode Description
ColorPlayers ( short depthFrame, byte colorFrame ) : void
DrawCircle ( System.Windows.Controls.Canvas canvas, Point point, Brush s, int strokeThickness, int diameter, bool fill = true ) : System.Windows.Shapes.Ellipse

DrawRectangle ( System.Windows.Controls.Canvas canvas, Point topLeft, Size size, Brush s ) : Rectangle

Creates a new rectangle on canvas.

DrawRectangle ( System.Windows.Controls.Canvas canvas, System.Drawing rect, Brush s, float scale = 1 ) : void
ToImageCoordinate ( Point p, double width, double height ) : Point

Method Details

ColorPlayers() public static méthode

public static ColorPlayers ( short depthFrame, byte colorFrame ) : void
depthFrame short
colorFrame byte
Résultat void

DrawCircle() public static méthode

public static DrawCircle ( System.Windows.Controls.Canvas canvas, Point point, Brush s, int strokeThickness, int diameter, bool fill = true ) : System.Windows.Shapes.Ellipse
canvas System.Windows.Controls.Canvas
point Point Point in the image coordinate.
s Brush
strokeThickness int
diameter int
fill bool
Résultat System.Windows.Shapes.Ellipse

DrawRectangle() public static méthode

Creates a new rectangle on canvas.
public static DrawRectangle ( System.Windows.Controls.Canvas canvas, Point topLeft, Size size, Brush s ) : Rectangle
canvas System.Windows.Controls.Canvas
topLeft Point
size Size
s Brush
Résultat Rectangle

DrawRectangle() public static méthode

public static DrawRectangle ( System.Windows.Controls.Canvas canvas, System.Drawing rect, Brush s, float scale = 1 ) : void
canvas System.Windows.Controls.Canvas
rect System.Drawing
s Brush
scale float
Résultat void

ToImageCoordinate() public static méthode

public static ToImageCoordinate ( Point p, double width, double height ) : Point
p Point
width double
height double
Résultat Point