Hi Guys,
Need to zoom in and out based on view center point.
instead of scrolling mouse in and out.
user will use function keys for zoom in out.
for example: for zoom in user will click on function key F2 out user will click on function key F3.
i am using the keyin "zoom in" but it is asking select point to zoom about.
How can i zoom in and out without selecting point ?
In MDL you can peruse several ways to achieve the zoom effect.
One strategy would be to obtain view range (origin, corner) with mdlView_getParameters(), scale these points agaist a midpoint between them and set the new view extent with mdlView_setArea().
You may also use mdlView_zoom() for very simple zooms.
Cheers,
/Chris Z.
Answer Verified By: Daniel Christopher