public abstract class RasterImage extends Image:
Base class for decoded raster images.
Raster images are decoded natively and cached by filename. The current backend supports BMP directly, uses Windows Imaging Component on Windows, and uses the platform gdk-pixbuf runtime on Linux when available for GIF, JPEG and TIFF families.
image = BmpImage("logo.bmp")
painter.drawImage(image, 16, 16, 128, 64)| Modifier and Type | Member | Description |
|---|---|---|
| public override readonly property | heightheight as Int: |
Decoded image height in pixels. |
| public override readonly property | widthwidth as Int: |
Decoded image width in pixels. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | crop | Selects a source rectangle and exposes it as the new logical image area. |
| public override | loadload(fileName as String) as Void: |
Loads another raster file into this image descriptor. |
| public | render | Renders the image into the given painter. |
| public override | resize | Stores logical dimensions for subsequent rendering decisions. |