ImgAddCopy

Top  Previous  Next

Prototype

 

ImgAddCopy (intDestinationImageHandle,intSourceImageHandle, intX, intY)

 

Description

 

Copies the source image into destination image, at specified position, overwriting its preceding content. Source and destination handles must refers to images that have the same bits per pixel.

 

Parameters

 

intDestinationImageHandle: integer value corresponding to  destination image handle.

 

intSourceImageHandle: integer value corresponding to  source image handle.

 

intX: integer value corresponding to horizontal location where place source image in destination image.

 

intY: integer value corresponding to vertical location where place source image in destination image.

 

Returned value

 

None.

 

Example

 

// ==================================

// This sample apply a logo on images

// ==================================

 

// Open an existing image from disk

LogoImage:=ImgOpen('c:\images\logo.tif',0);

 

// Add the loaded image to current image in top left corner

ImgAddCopy(_CurrentImage,LogoImage,0,0);

 

// Delete the logo image from memory

ImgDelete(LogoImage);