Re: displaying JPEG image from array of byte
Posted by Andy Gotz-2 on
URL: http://imagej.273.s1.nabble.com/displaying-JPEG-image-from-array-of-byte-tp3703272p3703273.html
Hi,
I asked the same question a few days ago. Wayne gave me the answer :
Something like this should work:
Image img = Toolkit.getDefaultToolkit().createImage(bytes);
new ImagePlus("title", img).show();
-wayne
It works for rgb images. The only problem I still have is that the
createImage() method in the AWT toolkit does not decode 8 bit and 16 bit
images. The ImageJ part works like a charm!
Andy
Hinds vinod wrote:
>I have a jpeg image as an array of bytes. How can I display and save to it
>by a particular name in ImageJ without writing the image out to a file?
>.May someone explain in details.
>Thanks.
>
>