#include <Fl_Image_IO.h>
Public Attributes | |
char * | name |
Name of image type, e.g. More... | |
char * | extensions |
Supported file extension, separated by semicolon. More... | |
bool(* | is_valid_file )(const char *filename) |
Check if filename has valid extension and/or contains valid image data. More... | |
bool(* | is_valid_mem )(const uint8 *data, uint32 size) |
Check if 'data' is valid image data. More... | |
bool(* | read_file )(const char *filename, int quality, uint8 *&data, Fl_PixelFormat &data_format, int &w, int &h) |
Read and uncompress image from file. More... | |
bool(* | read_mem )(const uint8 *stream, uint32 size, int quality, uint8 *&data, Fl_PixelFormat &data_format, int &w, int &h) |
Read and uncompress image from data. More... | |
bool(* | write_mem )(uint8 *&stream, int &size, int quality, const uint8 *data, const Fl_PixelFormat &data_format, int w, int h) |
Write and/or compress image data to memory. More... | |
bool(* | write_file )(const char *filename, int quality, const uint8 *data, const Fl_PixelFormat &data_format, int w, int h) |
Write and/or compress image data to memory. More... |
Support for eFLTK basic image read/write operations. Features of IO can be obtained by checking if function of this struct is not NULL. For example, if IO supports only reading, are write methods NULL.
Fl_Image_IO functions are NOT allowed to throw any exceptions that it doesn't handle it self!
Currently only PNG supports writing.
Definition at line 31 of file Fl_Image_IO.h.
|
Supported file extension, separated by semicolon. e.g. "jpeg;jpg" Definition at line 44 of file Fl_Image_IO.h. |
|
Check if filename has valid extension and/or contains valid image data. Returns true if success.
|
|
Check if 'data' is valid image data. Returns true if success.
|
|
Name of image type, e.g. "JPEG" or "PNG" Definition at line 38 of file Fl_Image_IO.h. |
|
Read and uncompress image from file. Returns true if success.
|
|
Read and uncompress image from data. Returns true if success.
|
|
Write and/or compress image data to memory. Returns true if success.
|
|
Write and/or compress image data to memory. Returns true if success.
|