![]() |
API Documentation
|
The core class for reading/writing and storing images in an optimized way. More...
#include <ImageFactory.h>
Public Member Functions | |
| void | addImageCompressed (const String &image_id, const Buffer< uint01 > &compressed, bool clear_other) |
| void | addImageCompressed (const String &image_id, const String &extension, const Buffer< uint01 > &compressed, bool clear_other) |
| void | addImageFile (const String &image_id, const File &file, bool clear_other) |
| void | addImageUncompressed (const String &image_id, const Buffer< uint01 > &uncompressed, bool clear_other) |
| void | addImageUncompressed (const String &image_id, const Buffer< uint01 > &uncompressed, const Vector< 2, uint04 > &size, bool clear_other) |
| bool | canRead (const File &file) |
| String | compressionFormat (const String &image_id) |
| void | convertColorTheme (const Buffer< std::pair< LABColor, LABColor >, uint04, ObjectAllocator< true > > &color, String &image, bool preserve_brightness, bool preserve_alpha) |
| void | convertDirectory (const File &directory, const String &from_ext, const String &to_ext) |
| void | copyImage (const String &image_id_destination, const String &image_id_source) |
| const Buffer< uint01 > & | getCompressed (const String &image_id, const String &default_extension=".png") |
| const Buffer< uint01 > & | getCompressedInFormat (const String &image_id, const String &default_extension) |
| const File & | getFile (const String &image_id) |
| const Vector< 2, uint04 > & | getSize (const String &image_id) |
| virtual void | getSupportedFormats (Buffer< FileFormat, uint04, ObjectAllocator< false > > &formats) const |
| const Buffer< uint01 > & | getUncompressed (const String &image_id) |
| bool | hasImage (const String &image_id) |
| bool | hasTransparency (const String &image_id) |
| Time | modifiedTime (const String &image_id) const |
| String | optimizedWriteFileName (const String &image_id, const Buffer< String > &optional_extenstions=Buffer< String >()) |
| void | readFromBMP (const String &image_id) |
| void | readFromCompressed (const String &image_id) |
| void | readFromFile (const String &image_id) |
| void | readFromFile (const String &image_id, String format_extension) |
| RLock | readLock () |
| void | setWriteQuality (fltp08 quality) |
| WLock | writeLock () |
| void | writeToFile (const String &image_id, const File &file) |
Static Public Member Functions | |
| static ImageFactory & | DefaultFactory () |
| static void | ReadJPG (const uint01 *input, uint04 input_length, uint01 *buffer, bool has_alpha, uint04 dst_line_span, const Vector< 2, uint04 > &offset) |
| static void | WriteToFile (const uint01 *data, Vector< 2, uint04 > size, uint04 px_size, const File &file, fltp08 write_quality=1.0) |
Protected Attributes | |
| Dictionary< String, ImageFormatHandler * > | m_format_handlers |
| Dictionary< String, bool > | m_has_transparency |
| Dictionary< String, Buffer< uint01 > > | m_image_compressed_data |
| Dictionary< String, String > | m_image_compression_format |
| Dictionary< String, Buffer< uint01 > > | m_image_decompressed_data |
| Dictionary< String, File > | m_image_files |
| Dictionary< String, Time > | m_image_modified_time |
| Dictionary< String, Vector< 2, uint04 > > | m_image_size |
| fltp08 | m_write_quality = 1.0 |
The core class for reading/writing and storing images in an optimized way.
| void addImageCompressed | ( | const String & | image_id, |
| const Buffer< uint01 > & | compressed, | ||
| bool | clear_other ) |
| void addImageCompressed | ( | const String & | image_id, |
| const String & | extension, | ||
| const Buffer< uint01 > & | compressed, | ||
| bool | clear_other ) |
| void addImageUncompressed | ( | const String & | image_id, |
| const Buffer< uint01 > & | uncompressed, | ||
| bool | clear_other ) |
| void addImageUncompressed | ( | const String & | image_id, |
| const Buffer< uint01 > & | uncompressed, | ||
| const Vector< 2, uint04 > & | size, | ||
| bool | clear_other ) |
| bool canRead | ( | const File & | file | ) |
| void convertColorTheme | ( | const Buffer< std::pair< LABColor, LABColor >, uint04, ObjectAllocator< true > > & | color, |
| String & | image, | ||
| bool | preserve_brightness, | ||
| bool | preserve_alpha ) |
|
static |
| const Buffer< uint01 > & getCompressed | ( | const String & | image_id, |
| const String & | default_extension = ".png" ) |
| const Buffer< uint01 > & getCompressedInFormat | ( | const String & | image_id, |
| const String & | default_extension ) |
|
virtual |
| bool hasImage | ( | const String & | image_id | ) |
| bool hasTransparency | ( | const String & | image_id | ) |
| String optimizedWriteFileName | ( | const String & | image_id, |
| const Buffer< String > & | optional_extenstions = Buffer< String >() ) |
| void readFromBMP | ( | const String & | image_id | ) |
| void readFromCompressed | ( | const String & | image_id | ) |
| void readFromFile | ( | const String & | image_id | ) |
|
static |
| RLock readLock | ( | ) |
| void setWriteQuality | ( | fltp08 | quality | ) |
| WLock writeLock | ( | ) |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |