Login  Register

Re: how to get Pixel Width from Properties... ?

Posted by Herbie-2 on Dec 11, 2012; 3:18pm
URL: http://imagej.273.s1.nabble.com/how-to-get-Pixel-Width-from-Properties-tp5001114p5001117.html

Hallo hallo,

in a IJ-macro you could use:
        getPixelSize(unit, pixelWidth, pixelHeight);

HTH

Herbie

On 11.12.12 12:57, M.Gbarin wrote:

> hallo,
>
> I try to write a java code to get a Pixel width from ImageJ (
> Image->Properties...) !!
> can someone help me ?!
>
> when I wrote -- IJ.run("Properties..."); -- I became the propereties window
> but I could not save the Pixel Width in a variable !
>
> where can be the problem ?
>
>
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/how-to-get-Pixel-Width-from-Properties-tp5001114.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html