Laxkit
0.0.7.1
|
Class to facilitate getting an image from the disk into memory suitable for the current graphics backend. More...
Public Member Functions | |
virtual LaxImage * | load_image (const char *filename, const char *previewfile, int maxx, int maxy, char delpreview, int required_state, int target_format, int must_be_that_format, int *actual_format)=0 |
Public Member Functions inherited from Laxkit::anObject | |
anObject () | |
Set object_id=getUniqueNumber(). | |
virtual | ~anObject () |
Empty virtual destructor. | |
virtual const char * | whattype () |
Returns the type of anObject. | |
virtual anObject * | duplicate (anObject *ref=NULL) |
virtual int | inc_count () |
Increment the data's count by 1. Returns count. | |
virtual int | dec_count () |
Decrement the count of the data, deleting if count is less than or equal to 0. | |
virtual int | the_count () |
Public Attributes | |
string | name |
ImageLoader * | next |
Public Attributes inherited from Laxkit::anObject | |
int | suppress_debug |
DeleteRefCountedFunc | deleteMe |
Called when the count is decremented to 0. | |
unsigned long | object_id |
char * | object_idstr |
Additional Inherited Members | |
Protected Attributes inherited from Laxkit::anObject | |
int | _count |
The reference count of the object. |
Class to facilitate getting an image from the disk into memory suitable for the current graphics backend.
ImageLoader objects simplify loading images from a wider variety of sources than is normally available for any one particular graphics backend. For instance, cairo only reads in png, but if we add Imlib or GraphicsMagick loaders, then the sky's the limit.
NOTES ON OTHER TOOLKIT IMPLEMENTATIONS:
gtk has module image loaders in lib directory. these are activated on call only.
implement: imlib loader graphicsmagick loader cairo loader