• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help me to use JAI  RSS feed

 
Tewodros Dagnachew
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to save jpeg format image but they lead me to JAI and I get JAI free software but I don't know how to use it I wander if somebody help me
Thank you inadvance
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to use JAI in order to save images. Have a look at the javax.imageio.ImageIO class, which has various methods that greatly simplify reading and writing images.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
You don't need to use JAI in order to save images. Have a look at the javax.imageio.ImageIO class, which has various methods that greatly simplify reading and writing images.


Well, you do need JAI if you want to save in formats not supported by J2SE but JPEG is supported so that's somewhat irrelevent. If you need to save in something not supported by J2SE then you should look at https://jai-imageio.dev.java.net/ for help on using JAI-ImageIO, otherwise just stick with what Ulf suggested in the standard libraries.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!