Login  Register

I need help to create a full screen image in ImageJ

Posted by ashish ram on Jun 20, 2009; 5:37am
URL: http://imagej.273.s1.nabble.com/I-need-help-to-create-a-full-screen-image-in-ImageJ-tp3692072.html

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.
*