L
Larry
Dear friends,
I am a novice vb.net user and I am seeking some experts advice.
I placed a panel control onto a form, set the autoscroll property
(of the panel control) to true. Let's say The size of the panel control
is 100 by 100 ( height =100, width=100)
Then I draw some picture onto this panel control, the x range of the
picture is from 0 to 500 and the height of the picture is 600. Because
the panel size (100x100) is smaller than the picture size (500x600),
only portion of the picture is viewable
through this panel. With the autoscroll on, I can drag the scroll bar
to see every part of the picture ( not at the same time though )
Now here is my question. Is there a way ( or property )that I can
use to adjust the zoom ratio ? for example, I can see 100% of the
picture at a samller scale, or a 10% if the picture (partitially) at a
larger scale ? By setting the zoom ratio, I do not need to re-plot the
picture every time I zooming or zoom out.
A second question is also regarding to the viewing of the picture.
Is there a way to (progarmatically) panning the view point ?
Combing the above two questions, I am asking, for the given panel
size (100x100), is there a way to view, for example,
the portion of pictures enclosed by a rectangular with coordinate
(x1,y1) and (x2,y2) as its diagonal, where x2-x1 may be grater than
100, y2-y1 may also be greater than 100 ?
I believe these are very basic questions and your help is
appreciated.
I am a novice vb.net user and I am seeking some experts advice.
I placed a panel control onto a form, set the autoscroll property
(of the panel control) to true. Let's say The size of the panel control
is 100 by 100 ( height =100, width=100)
Then I draw some picture onto this panel control, the x range of the
picture is from 0 to 500 and the height of the picture is 600. Because
the panel size (100x100) is smaller than the picture size (500x600),
only portion of the picture is viewable
through this panel. With the autoscroll on, I can drag the scroll bar
to see every part of the picture ( not at the same time though )
Now here is my question. Is there a way ( or property )that I can
use to adjust the zoom ratio ? for example, I can see 100% of the
picture at a samller scale, or a 10% if the picture (partitially) at a
larger scale ? By setting the zoom ratio, I do not need to re-plot the
picture every time I zooming or zoom out.
A second question is also regarding to the viewing of the picture.
Is there a way to (progarmatically) panning the view point ?
Combing the above two questions, I am asking, for the given panel
size (100x100), is there a way to view, for example,
the portion of pictures enclosed by a rectangular with coordinate
(x1,y1) and (x2,y2) as its diagonal, where x2-x1 may be grater than
100, y2-y1 may also be greater than 100 ?
I believe these are very basic questions and your help is
appreciated.