next up previous contents index
Next: Creating your own image Up: imageLoader Previous: Image and pixels   Contents   Index

The module

The imageLoader module has the following prototype:

int gocr_imageLoaderFunction ( const char *filename, 
void *data );
which, of course, may be named whatever you want. It's directly accessible by the user (by calling gocr_imageLoad), and you can use the data field to pass arguments.

GOCRlib provides a default image loader, which handles the most common formats, and can convert images to any of the GOCRlib supported types (GOCR_BW, GOCR_GRAY, GOCR_COLOR) by using one of these symbols as argument. You should use GOCR_BW whenever you don't need extra information, since it's likely to take much less memory than the others.

It can be accessed with gocr_moduleAppend/etc by using ``default'' as argument. etc



root 2002-02-17