Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I generate a .gif file using java,how?  RSS feed

 
Joy zhang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is possible,please give an example program.
Thanks.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is technically possible, but is not provided in the JDK due to licensing issues with the Unisys GIF patent... :roll: however, there are several GIF endcoders out there... this page has several good links about it.
 
jiayu gao
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
of course

[ July 16, 2003: Message edited by: jiayu gao ]
 
Joy zhang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I donot express myself clearly.
Now I will try a secend time:
step1,create an Image Object,do something to it(e.g. draw lines,paint colors)
step2,save the Image Object to a .gif file
Thanks to Nathan Pruett for giving answer to step2.
How can I accomplish step1 in java?
Thanks a lot.
Please give pseudocode.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer to step 1 is to use BufferedImage.

 
Joy zhang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's done!
Thanks to Nathan Pruett.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!