| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
8.3.5 Zooming (Pure C)
These functions control the overall zooming of the picture or the sub-picture. Normally you can use these variables and functions for removing “white” spaces around a plot.
- C function:
voidmgl_set_plotfactor (HMGLgr,floatval) Sets the factor of plot size. It is not recommended to set it lower then 1.6. This is some anlogue of function Zoom() but applied not to overall image but for each InPlot. Use negative value to enable automatic
PlotFactorselection.
- C function:
voidmgl_set_zoom (HMGLgr,floatx1,floaty1,floatx2,floaty2) Changes the scale of graphics that correspond to zoom in/out of the picture. After function call the current plot will be cleared and further the picture will contain plotting from its part [x1,x2]*[y1,y2]. Here picture coordinates x1, x2, y1, y2 changes from 0 to 1. Use
Zoom(0,0,1,1)to return default view.
