I need help to create a full screen image in ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

I need help to create a full screen image in ImageJ

ashish ram
hello everyone,
I am new to *ImageJ* and now using for my project.In this i need to create
an image which needs to be full screen and the height and width of the image
will be given outside from the program by running a dialogue box.I am facing
problem in making the image full screen which is very important to the the
coding successful.When i am setting height and width to be say 512 each
image created is small.i found increasing the height and width does not
significantly make the image larger.

The part of the code which i am using to create the image is

*int width=512,height=512;
ImagePlus im = NewImage.createImage(title, width, height, 1,8,
NewImage.FILL_BLACK);
ImageProcessor ip=im.getProcessor();
im.show(); // show image on screen
ImageWindow win = im.getWindow();
ImageCanvas canvas = win.getCanvas();
canvas.addMouseListener(this)*;

i have also tried the *Zoom* class of the package but it is not helpfull
*please anyone tell me what changes should be made in the code so that while
running the code image will be automatically full screen.
*
Reply | Threaded
Open this post in threaded view
|

Re: I need help to create a full screen image in ImageJ

BenTupper
Hi,

I think you want to use ImageWindow's setLocationAndSize() method.

Cheers,
Ben


On Jun 20, 2009, at 1:37 AM, ashish ram wrote:

> hello everyone,
> I am new to *ImageJ* and now using for my project.In this i need to  
> create
> an image which needs to be full screen and the height and width of  
> the image
> will be given outside from the program by running a dialogue box.I  
> am facing
> problem in making the image full screen which is very important to  
> the the
> coding successful.When i am setting height and width to be say 512  
> each
> image created is small.i found increasing the height and width does  
> not
> significantly make the image larger.
>
> The part of the code which i am using to create the image is
>
> *int width=512,height=512;
> ImagePlus im = NewImage.createImage(title, width, height, 1,8,
> NewImage.FILL_BLACK);
> ImageProcessor ip=im.getProcessor();
> im.show(); // show image on screen
> ImageWindow win = im.getWindow();
> ImageCanvas canvas = win.getCanvas();
> canvas.addMouseListener(this)*;
>
> i have also tried the *Zoom* class of the package but it is not  
> helpfull
> *please anyone tell me what changes should be made in the code so  
> that while
> running the code image will be automatically full screen.
> *

Ben Tupper