Package codedraw

Class Image

java.lang.Object
codedraw.Image
Direct Known Subclasses:
BorderlessWindow, CodeDraw, FullScreen

public class Image extends Object
This class represents an image that can be used within the CodeDraw library. Empty images can be created via the constructor Image(int, int). Optionally a background color can be specified Image(int, int, Color). Images can be loaded from external source via static constructors such as fromFile(String) and fromUrl(String).

 Image image = Image.fromFile("/directory/filename.png");