Image
classin packageklyn.gui.images
public abstract class Image:
Image

Represents a graphical image.

This class provides methods for loading and manipulating images.

Use Image.getImage(...) when the concrete image class should be selected from the file extension.

Properties
Modifier and Type Member Description
public property fileName
fileName as String
No summary.
public abstract readonly property height
height as Int
Gets the height of the image.
public abstract readonly property width
width as Int
Gets the width of the image.
Methods
Modifier and Type Member Description
public abstract crop
crop(x as Int, y as Int, width as Int, height as Int) as Void
Crops the logical image area.
public static getImage
getImage(filename as String) as Image:
Factory method to get an image instance based on the file extension.
public abstract load
load(filename as String) as Void
Loads an image from a file.
public abstract resize
resize(width as Int, height as Int) as Void
Resizes the logical image area.