Module beamui.graphics.images
Image loading functions.
Support of PNG and JPEG loading is provided by a part of dlib (located in 3rdparty/dimage).
Not available on console backends. Guard image code with static if (BACKEND_GUI)
condition.
Import line
import beamui .graphics .images;
Functions
Name | Description |
---|---|
isJPEG(filename)
|
Is it a JPG filename? |
isPNG(filename)
|
Is it a PNG filename? |
loadImage(filename)
|
Load and decode image from file to Bitmap , returns empty bitmap if loading or decoding failed
|
loadImage(data, filename)
|
Decode image from the byte array to Bitmap , returns empty bitmap if decoding failed
|
registerImageType(extension, loader)
|
Aliases
Name | Type | Description |
---|---|---|
ImageLoader
|
Bitmap function(const(ubyte[]))
|