How Can We Help?

SimpleOCR:SDK Functions – ReplaceImage

You are here:
< All Topics

int ReplaceImage(SETOFIMG * set, int index, IMG * image)

Replaces 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 set of images of type SETOFIMG.

index

Position of the replaced image, counted from 0.

image

A pointer to the new image.

Comments

The replaced image is automatically freed.

Example

SETOFIMG *doc; 
IMG *img; 
int nb; 

// Creates an image in img 
... 

// Creates a set 
... 

// Replace the third image 
if (ReplaceImage(set,2,img)) 
{
// error processing 
...
}
Contact Us for FREE Consultation on Your OCR Project
=
Table of Contents

Title

Go to Top