BasicDraw.java Source code

Java tutorial

Introduction

Here is the source code for BasicDraw.java

Source

import java.awt.Image;
import java.awt.Toolkit;

public class BasicDraw {
    public static void main(String[] args) {
        Image image = new ImageIcon("image.gif").getImage();

        width = image.getWidth(null);
        height = image.getHeight(null);

    }
}