C# 클래스 R3.Drawing.ImageSpace

Class to help converting from Image/Canvas coords <-> absolute coords.
파일 보기 프로젝트 열기: roice3/Honeycombs 1 사용 예제들

공개 메소드들

메소드 설명
Height ( double height ) : double

Returns a screen height from an absolute height.

ImageSpace ( double width, double height ) : R3.Geometry

Takes in width/height of an Image/Canvas. For a bitmap, this is number of pixels.

Pixel ( Vector3D point ) : Vector3D

Returns a screen pixel from an absolute location. NOTE: We don't return a 'Point' because it is different in Forms/Silverlight.

Pixel ( VectorND point ) : VectorND

VectorNDs are assumed to be 4D.

Point ( Vector3D Pixel ) : Vector3D

Returns an absolute location from a screen pixel. NOTE: We don't take in a 'Point' because it is different in Forms/Silverlight.

Width ( double width ) : double

Returns a screen width from an absolute width.

메소드 상세

Height() 공개 메소드

Returns a screen height from an absolute height.
public Height ( double height ) : double
height double
리턴 double

ImageSpace() 공개 메소드

Takes in width/height of an Image/Canvas. For a bitmap, this is number of pixels.
public ImageSpace ( double width, double height ) : R3.Geometry
width double
height double
리턴 R3.Geometry

Pixel() 공개 메소드

Returns a screen pixel from an absolute location. NOTE: We don't return a 'Point' because it is different in Forms/Silverlight.
public Pixel ( Vector3D point ) : Vector3D
point Vector3D
리턴 Vector3D

Pixel() 공개 메소드

VectorNDs are assumed to be 4D.
public Pixel ( VectorND point ) : VectorND
point R3.Geometry.VectorND
리턴 R3.Geometry.VectorND

Point() 공개 메소드

Returns an absolute location from a screen pixel. NOTE: We don't take in a 'Point' because it is different in Forms/Silverlight.
public Point ( Vector3D Pixel ) : Vector3D
Pixel Vector3D
리턴 Vector3D

Width() 공개 메소드

Returns a screen width from an absolute width.
public Width ( double width ) : double
width double
리턴 double