Module dcanvas.graphics.images
Image loading functions.
Currently uses FreeImage.
Usage of libpng is not feasible under linux due to conflicts of library and binding versions.
Synopsis
import dcanvas .graphics .images;
Functions
| Name | Description |
|---|---|
loadImage(filename)
|
load and decode image from file to ColorDrawBuf, returns null if loading or decoding is failed |
loadImage(data, filename)
|
load and decode image from input stream to ColorDrawBuf, returns null if loading or decoding is failed |