dlangui.graphics.images

DLANGUI library.

This module contains image loading functions.

Currently uses FreeImage.

Usage of libpng is not feasible under linux due to conflicts of library and binding versions.

Synopsis:

import dlangui.graphics.images;

Members

Classes

ImageDecodingException
class ImageDecodingException
Undocumented in source.

Functions

loadFreeImage
ColorDrawBuf loadFreeImage(InputStream stream)
Undocumented in source. Be warned that the author may not have intended to support it.
loadImage
ColorDrawBuf loadImage(string filename)

load and decode image from file to ColorDrawBuf, returns null if loading or decoding is failed

loadImage
ColorDrawBuf loadImage(InputStream stream)

load and decode image from stream to ColorDrawBuf, returns null if loading or decoding is failed

loadPngImage
ColorDrawBuf loadPngImage(InputStream stream)

load and decode PNG image

lvpng_error_func
void lvpng_error_func(png_structp png, png_const_charp msg)
Undocumented in source. Be warned that the author may not have intended to support it.
lvpng_read_func
void lvpng_read_func(png_structp png, png_bytep buf, png_size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
lvpng_warning_func
void lvpng_warning_func(png_structp png, png_const_charp msg)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

USE_FREEIMAGE
bool USE_FREEIMAGE;
Undocumented in source.
USE_LIBPNG
bool USE_LIBPNG;
Undocumented in source.

Meta