public class EncodedImage extends RasterImage
Raster image decoded directly from encoded bytes, without a temporary file. The descriptor owns its decoded pixels; recorded Painter frames retain their snapshot even after collection of this descriptor. PNG/BMP are supported on KlynOS; PNG, JPEG, GIF, BMP and TIFF follow installed host codecs on Linux/Windows. Decoded dimensions are limited to 4096 per axis and encoded input to 16 MiB. Animated images expose their first frame only.
image = EncodedImage(HttpClient().getBinary(url).content)
| Modifier and Type | Member | Description |
|---|---|---|
| public | EncodedImageEncodedImage(encoded as Byte[]) |
Decodes a private pixel snapshot from immutable input bytes. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | loadload(filename as String) as Void |
Encoded snapshots cannot be replaced by a file load. |