Jump to content

Image


Recommended Posts

Posted
    private final String PAINT_URL = "https://i.imgur.com/something.png";
    private BufferedImage PAINT_IMAGE = null;    
	@Override
    public void onPaint(Graphics2D g) {
        g.drawImage(PAINT_IMAGE,0,337,null);
    }
    public void loadImage(){
        try {
            URL url = new URL(PAINT_URL);
            PAINT_IMAGE = ImageIO.read(url);
        }catch(Exception e){}
    }

 

Posted
28 minutes ago, Naked said:

    private final String PAINT_URL = "https://i.imgur.com/something.png";
    private BufferedImage PAINT_IMAGE = null;    
	@Override
    public void onPaint(Graphics2D g) {
        g.drawImage(PAINT_IMAGE,0,337,null);
    }
    public void loadImage(){
        try {
            URL url = new URL(PAINT_URL);
            PAINT_IMAGE = ImageIO.read(url);
        }catch(Exception e){}
    }

 

y u spooning him

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...