Re: Show an Image without opening file but by directly passing height, width, pixels array. VERY URGENT.
Posted by dscho on Feb 15, 2006; 11:08am
URL: http://imagej.273.s1.nabble.com/Show-an-Image-without-opening-file-but-by-directly-passing-height-width-pixels-array-VERY-URGENT-tp3703721p3703726.html
Hi,
On Wed, 15 Feb 2006, Nihar Dhruva wrote:
> imp = new ImagePlus("TEST", new ColorProcessor(width, height, pixels));
> if (imp!=null) imp.show();
That is the idea. However, you have to decide how you want to deploy it:
- either you hardcode the image in ImageJApplet.java, which easy
but ugly,
- or you pass the image as applet parameters, which is a bit more
involved, as these are passed as strings, and have to be
converted to int, int and int[] respectively.
Ciao,
Dscho