C# 클래스 HandInput.Util.VisualUtil

Utility functions for visualization.
파일 보기 프로젝트 열기: ushadow/handinput

공개 메소드들

메소드 설명
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

메소드 상세

ColorPlayers() 공개 정적인 메소드

public static ColorPlayers ( short depthFrame, byte colorFrame ) : void
depthFrame short
colorFrame byte
리턴 void

DrawCircle() 공개 정적인 메소드

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
리턴 System.Windows.Shapes.Ellipse

DrawRectangle() 공개 정적인 메소드

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
리턴 Rectangle

DrawRectangle() 공개 정적인 메소드

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
리턴 void

ToImageCoordinate() 공개 정적인 메소드

public static ToImageCoordinate ( Point p, double width, double height ) : Point
p Point
width double
height double
리턴 Point