Property | Type | Description | |
---|---|---|---|
_dragging | bool | ||
_image | Image | ||
_imageFocus | Point | ||
_mode | Mode | ||
_multipleFiles | bool | ||
_zoom | float | ||
grabCursor | |||
grabbingCursor |
Method | Description | |
---|---|---|
SetImage ( |
Change the currently displayed image.
|
|
SetImage ( |
Change the currently displayed image
|
|
SetMultipleFileMode ( bool multipleFiles ) : void |
Change if multiple files are selected or not. Multiple images cannot be displayed if this is set to true.
|
|
ZPImageBox ( ) : System |
Construct a
|
Method | Description | |
---|---|---|
Box2ImageCoord ( Point boxCoord ) : Point |
Convert a point from mouse coordinates to image coordinates.
|
|
Near ( Point a, Point b, float dist ) : bool |
Determine if two points are within a certain distance of each other.
|
|
ResetImage ( bool moveToBoxCenter ) : void |
Change the zoom level so the image is entirely viewable.
|
Method | Description | |
---|---|---|
DrawImage ( object sender, PaintEventArgs e ) : void |
Paint the image to the box.
|
|
SetEventHandlers ( ) : void | ||
ZPImageBox_KeyDown ( object sender, |
If the Control key was pressed, put the image into Manipulate mode.
|
|
ZPImageBox_KeyUp ( object sender, |
If the Control key was released, put the image into Navigate mode.
|
|
ZPImageBox_MouseDown ( object sender, MouseEventArgs e ) : void |
Handle navigation interaction
|
|
ZPImageBox_MouseEnter ( object sender, |
This needs to grab focus when the mouse enters so that input can be handled.
|
|
ZPImageBox_MouseMove ( object sender, MouseEventArgs e ) : void |
Move the image around.
|
|
ZPImageBox_MouseUp ( object sender, MouseEventArgs e ) : void |
Disable dragging mode.
|
|
ZPImageBox_MouseWheel ( object sender, MouseEventArgs e ) : void |
Zoom in or out of the image.
|
protected Box2ImageCoord ( Point boxCoord ) : Point | ||
boxCoord | Point | Coordinate in the box's coordinate system. |
return | Point |
protected static Near ( Point a, Point b, float dist ) : bool | ||
a | Point | First point. |
b | Point | Second Point. |
dist | float | The |
return | bool |
protected ResetImage ( bool moveToBoxCenter ) : void | ||
moveToBoxCenter | bool | Should the image be moved back to the center of the box |
return | void |
public SetImage ( |
||
image | The new image to display. | |
return | void |
public SetImage ( |
||
image | The new image to display | |
reset | bool | Whether to reset the zoom level and focal point |
return | void |
public SetMultipleFileMode ( bool multipleFiles ) : void | ||
multipleFiles | bool | Are multiple files selected |
return | void |
protected static Cursor,System.Windows.Forms grabCursor | ||
return |