• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help me to use JAI

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic