Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

GIFEncoder

Thread view: 
shameram - 07 Jul 2006 15:36 GMT
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
Oliver Wong - 07 Jul 2006 15:54 GMT
> 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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.