ImgDuplicate

Top  Previous  Next

Prototype

 

IntImage:=ImgDuplicate(intSourceImageHandle)

 

Description

 

Produces a copy of the full image.

 

Parameters

 

intSourceImageHandle: integer value corresponding to the image handle to duplicate.

 

Returned value

 

IntImage: integer value corresponding to the new duplicated imagehandle.

 

Notes

 

None.

 

Example

 

// Make a copy of full original image

OriginalGrayScaleImage:=ImgDuplicate(_CurrentImage);

 

// Threshold current image

ImgBackTrackThreshold(_CurrentImage,140,200,0.7,5,5);

 

// Refine thresholding

ImgRefineThreshold(_CurrentImage, OriginalGrayScaleImage, 20);

 

// Delete the original grayscale image

ImgDelete(OriginalGrayScaleImage);