Posted by
Nihar Dhruva on
Feb 15, 2006; 12:40pm
URL: http://imagej.273.s1.nabble.com/Show-an-Image-without-opening-file-but-by-directly-passing-height-width-pixels-array-VERY-URGENT-tp3703721p3703727.html
Thanks for your help. Still, if i'll find any doubt,, i'll ask you again.
Thanks a lot for your support.
Nihar Dhruva (Jr. Software Engineer)
Decision Craft Analytics Pvt ltd.
Phone:-+91-79-26870656/57/58 Ext: 145
Email:
[hidden email]
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]]On Behalf Of
Johannes Schindelin
Sent: Wednesday, February 15, 2006 4:38 PM
To:
[hidden email]
Subject: Re: Show an Image without opening file but by directly passing
height, width, pixels array. VERY URGENT.
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