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 
...
}
Previous SimpleOCR:SDK Functions – OCRSetTemplate
Next SimpleOCR:SDK Functions – ResizeImg
Table of Contents
Contact Us for FREE Consultation on Your OCR Project

Share This Story, Choose Your Platform!

OCR Guide
Brands
Compare most popular choices in one cozy and extensive table
Languages
Applications
Go to Top