API Documentation
|
#include <ImageFactory.h>
Public Member Functions | |
RLock | readLock () |
WLock | writeLock () |
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) |
void | addImageCompressed (const String &image_id, const String &extension, const Buffer< uint01 > &compressed, bool clear_other) |
void | addImageCompressed (const String &image_id, const Buffer< uint01 > &compressed, bool clear_other) |
void | readFromFile (const String &image_id) |
void | readFromFile (const String &image_id, String format_extension) |
void | writeToFile (const String &image_id, const File &file) |
void | readFromCompressed (const String &image_id) |
Time | modifiedTime (const String &image_id) const |
void | convertDirectory (const File &directory, const String &from_ext, const String &to_ext) |
bool | hasImage (const String &image_id) |
void | copyImage (const String &image_id_destination, const String &image_id_source) |
const Buffer< uint01 > & | getUncompressed (const String &image_id) |
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) |
void | convertColorTheme (const Buffer< std::pair< LABColor, LABColor >, uint04, ObjectAllocator< true > > &color, String &image, bool preserve_brightness, bool preserve_alpha) |
String | optimizedWriteFileName (const String &image_id, const Buffer< String > &optional_extenstions=Buffer< String >()) |
bool | hasTransparency (const String &image_id) |
const Vector< 2, uint04 > & | getSize (const String &image_id) |
String | compressionFormat (const String &image_id) |
bool | canRead (const File &file) |
void | setWriteQuality (fltp08 quality) |
virtual void | getSupportedFormats (Buffer< FileFormat, uint04, ObjectAllocator< false > > &formats) const |
void | readFromBMP (const String &image_id) |
Static Public Member Functions | |
static void | WriteToFile (const uint01 *data, Vector< 2, uint04 > size, uint04 px_size, const File &file, fltp08 write_quality=1.0) |
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) |
Protected Attributes | |
Dictionary< String, Time > | m_image_modified_time |
Dictionary< String, Vector< 2, uint04 > > | m_image_size |
Dictionary< String, Buffer< uint01 > > | m_image_decompressed_data |
Dictionary< String, Buffer< uint01 > > | m_image_compressed_data |
Dictionary< String, String > | m_image_compression_format |
Dictionary< String, File > | m_image_files |
Dictionary< String, bool > | m_has_transparency |
Dictionary< String, ImageFormatHandler * > | m_format_handlers |
fltp08 | m_write_quality = 1.0 |
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 |