Re: CxImage User Input
- Posted by ghaberek (admin) Aug 31, 2009
- 1114 views
Lone_EverGreen_Ranger said...
cxImage code that allowed a user to input a graphic file
Given that statement right there, I think this is what you are looking for:
-- atom CXI_LoadImage(object source, integer imageType, integer bufSize) -- Loads an image from 'source', which can be either a sequence specifying -- a filename, or an atom specifying a memory location. If loading from -- memory you should set 'bufSize' to the size of the memory buffer, otherwise -- you can just pass any (integer) value. 'imageType' specifies the kind of -- image you want to load (see the list below. CXI_FORMAT_*). If you pass -- CXI_FORMAT_UNKNOWN the library will try to detect the image type on its own. -- CXI_LoadImage returns a pointer to a CxImage object (for a reference, download -- the CxImage sources and look in ximage.h) on success, and 0 otherwise.
-Greg