Where do I get the api for imageIO?
So That i can use functions like
String imagePath = "C:/programs/";
File inFile = new File(imagePath, "single image.gif");
BufferedImage image = ImageIO.read(inFile);
I plan on exporting this : import javax.imageio.ImageIO;
It's in the JDK. Simply:
import javax.imageio.ImageIO;
finnw is correct about the API. However, what do you want to do with the BufferedImage? If you want it on a JLabel or as the icon for JOptionPane.showXXXDialog(), swing offers a good solution - class ImageIcon. Easy construction and use, IMO. Regards, - MS
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.