Property | Type | Description | |
---|---|---|---|
ZoomLevels | double[] |
Property | Type | Description | |
---|---|---|---|
GetSelectedRectangle | |||
InitializeComponent | void | ||
OnMouseDown | void | ||
OnMouseEnter | void | ||
OnMouseMove | void | ||
OnMouseUp | void | ||
OnMouseWheel | void | ||
OnResize | void | ||
OnScroll | void | ||
ReverseRectangle | void | ||
SetScrollBarVisibilityAndMaxMin | void |
Method | Description | |
---|---|---|
PanAndZoomPictureBox ( ) : System |
Create a picture box with pan and zoom functionality
|
|
SetZoomScale ( double zoomScale, Point fixPoint ) : void |
Set the new zoom scale for the displayed image
|
Method | Description | |
---|---|---|
GetImageSize ( ) : |
Get the size of the image
|
|
GetViewSize ( ) : |
Get the size of the view area
|
|
Min ( |
Get the minimum of the two sizes
|
|
OnPaint ( PaintEventArgs pe ) : void |
Paint the image
|
Method | Description | |
---|---|---|
GetSelectedRectangle ( Point p1, Point p2 ) : |
Get the rectangle defined by the two points
|
|
InitializeComponent ( ) : void | ||
OnMouseDown ( object sender, MouseEventArgs e ) : void | ||
OnMouseEnter ( object sender, |
||
OnMouseMove ( object sender, MouseEventArgs e ) : void |
Used for tracking the mouse position on the image
|
|
OnMouseUp ( object sender, MouseEventArgs e ) : void | ||
OnMouseWheel ( object sender, MouseEventArgs e ) : void | ||
OnResize ( object sender, |
||
OnScroll ( object sender, |
||
ReverseRectangle ( ) : void | ||
SetScrollBarVisibilityAndMaxMin ( ) : void |
protected static Min ( |
||
s1 | The first size | |
s2 | The second size | |
return |
protected OnPaint ( PaintEventArgs pe ) : void | ||
pe | PaintEventArgs | The paint event |
return | void |
public SetZoomScale ( double zoomScale, Point fixPoint ) : void | ||
zoomScale | double | The new zoom scale |
fixPoint | Point | The point to be fixed, in display coordinate |
return | void |