Hello...
I am working on an image splitter program, which splits the image into
number of segments decided by the user.
Till now I create a vector where each element is an array that holds
the pixels of the image's segment.
Well, I am working with GIf Images. I found a GIFEncoder, but I dont
know how to use it correctly to display the images that I have in the
vector as array of pixels.
actually the GIFEncoder that I'm trying to use is on this site:
http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html
thanx in advance
Shameram Sadaki
> Hello...
> I am working on an image splitter program, which splits the image into
[quoted text clipped - 7 lines]
> actually the GIFEncoder that I'm trying to use is on this site:
> http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html
From the JavaDocs, you pass the GifEncoder an Image or an ImageProducer,
and an OutputStream.
So convert whatever you have to an Image or an ImageProducer, and pass
it a FileOutputStream if you want the GIF to be written to a file, for
example.
- Oliver
shameram - 08 Jul 2006 09:20 GMT
> > Hello...
> > I am working on an image splitter program, which splits the image into
[quoted text clipped - 16 lines]
>
> - Oliver
Well I passed the Image to the constructor, but after using the
constructor should I call the method write(OuputStream output)? and if
I should the output file that i will pass it will be null?
Shameram
Thomas Fritsch - 10 Jul 2006 13:01 GMT
>> > the GIFEncoder that I'm trying to use is on this site:
>> > http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html
[quoted text clipped - 9 lines]
> constructor should I call the method write(OuputStream output)? and if
> I should the output file that i will pass it will be null?
Did you also read the API doc of GifEncoder's superclass, ImageEncoder?
Look especially at its 'encode' method.

Signature
Thomas