Hi Nicola,
The ZoomIn parameters are the coordinates of the point at the center of the
zoom. For example, consider..
int w = imp.getWidth();
int h = imp.getHeight();
ImageCanvas _ic = _imp.getCanvas();
_ic.zoomIn(w/2, h/2);
..
zooms the whole image around its center.
Best, William O'Connell
On 1/26/07,
[hidden email] <
[hidden email]> wrote:
>
> Hi all,
> i have some troubles using zoom in IJ. I write a fragment of code but I
> can't understand parameters in ImageCanvas -> zoomIn and zoomOut methods. I
> try to modify them (parameters) but nothing change.
>
> ImagePlus _imp = new ImagePlus(_path);
> _imp.show();
> ImageCanvas _ic = _imp.getCanvas();
> _ic.zoomIn(50,100);
>
> Initially I think they was starting coord for magnify, but ALL image will
> be zoomed and not only the remaining part (width-50, height-100).
> Could someone explain me how it works?
>
>
> Thanks a lot,
> -nicola
>
>
> ------------------------------------------------------
> Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
>
http://click.libero.it/infostrada26gen07>