logo       

Re: displaying JPEG image from array of byte: msg#00301

java.imagej

Subject: Re: displaying JPEG image from array of byte

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.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise