Свойство | Тип | Описание | |
---|---|---|---|
Client2ImageUV | ImageUtility.float2 | ||
Client2ImageUV_NoSquareAspectRatio | ImageUtility.float2 | ||
ImageClientRect | |||
ImageUV2Client | |||
ImageUV2Client_NoSquareAspectRatio | |||
InitializeComponent | void | ||
UpdateCropRectangleVertices | void |
Метод | Описание | |
---|---|---|
OutputPanel ( IContainer container ) : System | ||
ResetCropRectangle ( ) : void |
Resets the crop rectangle to the entire image
|
|
SetCropRectangle ( ImageUtility _Center, ImageUtility _HalfSize, float _Rotation ) : void |
Sets the crop rectangle to a specific value
|
|
StartCalibrationTargetPicking ( CalibrationDone _Notify ) : void |
Starts calibration target picking mode (user is expected to place the target with the mouse, then change the radius so the calibration can take place)
|
|
UpdateBitmap ( ) : void |
Метод | Описание | |
---|---|---|
BuildClipVertices ( ImageUtility _Center, ImageUtility _HalfSize, ImageUtility _AxisX, ImageUtility _AxisY ) : ImageUtility.float2[] | ||
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
OnMouseDown ( MouseEventArgs e ) : void | ||
OnMouseMove ( MouseEventArgs e ) : void | ||
OnMouseUp ( MouseEventArgs e ) : void | ||
OnPaint ( PaintEventArgs e ) : void | ||
OnPaintBackground ( PaintEventArgs e ) : void | ||
OnSizeChanged ( |
Метод | Описание | |
---|---|---|
Client2ImageUV ( |
This is the UVs used for crop rectangle computation The V is in [0,1] mapping from [0,ImageHeight] as usual but U takes into account aspect ratio to ensure pixels are always squares so for example if you image has an aspect ratio of 2 (Width = 2 * Height) then U will go from [-0.5,1.5] assuming 0.5 is always the center of the image. U span is then 1.5+0.5 = 2, which is twice the span of V [0,1] and we keep the correct aspect ratio
|
|
Client2ImageUV_NoSquareAspectRatio ( |
This is a simple UV as used in 3D engines: (0,0) is top left corner of the image, (1,1) is bottom right corner
|
|
ImageClientRect ( ) : |
||
ImageUV2Client ( ImageUtility _Position ) : |
||
ImageUV2Client_NoSquareAspectRatio ( ImageUtility _Position ) : |
||
InitializeComponent ( ) : void |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
|
UpdateCropRectangleVertices ( ) : void |
protected BuildClipVertices ( ImageUtility _Center, ImageUtility _HalfSize, ImageUtility _AxisX, ImageUtility _AxisY ) : ImageUtility.float2[] | ||
_Center | ImageUtility | |
_HalfSize | ImageUtility | |
_AxisX | ImageUtility | |
_AxisY | ImageUtility | |
Результат | ImageUtility.float2[] |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
Результат | void |
protected OnMouseDown ( MouseEventArgs e ) : void | ||
e | MouseEventArgs | |
Результат | void |
protected OnMouseMove ( MouseEventArgs e ) : void | ||
e | MouseEventArgs | |
Результат | void |
protected OnMouseUp ( MouseEventArgs e ) : void | ||
e | MouseEventArgs | |
Результат | void |
protected OnPaint ( PaintEventArgs e ) : void | ||
e | PaintEventArgs | |
Результат | void |
protected OnPaintBackground ( PaintEventArgs e ) : void | ||
e | PaintEventArgs | |
Результат | void |
protected OnSizeChanged ( |
||
e | ||
Результат | void |
public OutputPanel ( IContainer container ) : System | ||
container | IContainer | |
Результат | System |
public SetCropRectangle ( ImageUtility _Center, ImageUtility _HalfSize, float _Rotation ) : void | ||
_Center | ImageUtility | |
_HalfSize | ImageUtility | |
_Rotation | float | |
Результат | void |
public StartCalibrationTargetPicking ( CalibrationDone _Notify ) : void | ||
_Notify | CalibrationDone | |
Результат | void |