Java BufferedImage Load loadFromURL(String url)

Here you can find the source of loadFromURL(String url)

Description

load From URL

License

Open Source License

Declaration

public static BufferedImage loadFromURL(String url) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.image.BufferedImage;
import java.io.IOException;

import java.net.URL;
import javax.imageio.ImageIO;

public class Main {
    public static BufferedImage loadFromURL(String url) {
        try {/*from w  w w. ja v  a 2s  .c  om*/
            return ImageIO.read(new URL(url));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. loadFromResource(String imageName, Class cls)
  2. loadImage(byte[] data)
  3. loadImage(ClassLoader classLoader, String path)
  4. loadImage(File file)
  5. loadImage(File file)