Laxkit  0.0.7.1
Public Member Functions | Public Attributes
Laxkit::ImageLoader Class Reference

Class to facilitate getting an image from the disk into memory suitable for the current graphics backend. More...

Inheritance diagram for Laxkit::ImageLoader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual LaxImageload_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 charwhattype ()
 Returns the type of anObject.
virtual anObjectduplicate (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
ImageLoadernext
- Public Attributes inherited from Laxkit::anObject
int suppress_debug
DeleteRefCountedFunc deleteMe
 Called when the count is decremented to 0.
unsigned long object_id
charobject_idstr

Additional Inherited Members

- Protected Attributes inherited from Laxkit::anObject
int _count
 The reference count of the object.

Detailed Description

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


The documentation for this class was generated from the following file:

Mon Feb 17 2014 11:52:59, Laxkit