Image
classin packageklyn.gui.images
public abstract class 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 |
No summary. |
| public readonly property |
height |
Gets the height of the image. |
| public readonly property |
width |
Gets the width of the image. |
Methods
| Modifier and Type |
Member |
Description |
| public method |
cropcrop(x as Int, y as Int, width as Int, height as Int) as Void: |
Crops the image to the specified rectangle. |
| public static |
getImage |
Factory method to get an image instance based on the file extension. |
| public abstract |
loadload(filename as String) as Void |
Loads an image from a file. |
| public method |
resizeresize(width as Int, height as Int) as Void: |
Resizes the image to the specified size. |