Image
class in package klyn.gui.images

    public abstract class Image:

Image

Represents a graphical image.

This class provides methods for loading and manipulating images.

@since 1.0

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | fileName `fileName as String` | No summary.
public readonly property | height `height as Int:` | Gets the height of the image.
public readonly property | width `width as Int:` | Gets the width of the image.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public method | crop `crop(x as Int, y as Int, width as Int, height as Int) as Void:` | Crops the image to the specified rectangle.
public static | getImage `getImage(filename as String):` | 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 method | resize `resize(width as Int, height as Int) as Void:` | Resizes the image to the specified size.