SimpleOCR:SDK Functions – InsertImage
int InsertImage(SETOFIMG * set, int index, IMG * image)
Inserts an image in a set of image at a given position.
Return Value
If the function fails, a nonzero value is returned.
Parameters
set
A pointer to a set of images of type SETOFIMG.
index
Position of the inserted image, counted from 0.
image
Inserted image.
Example
SETOFIMG *doc;
IMG *img;
int nb;
// Creates an image in img
...
// Creates a set
...
// Insert the image at the first position
if (InsertImage(set,0,img))
{
// error processing
...
}