ImgAddCopy
Previous  Top  Next

Prototype

ImgAddCopy (intDestinationImageHandle,intSourceImageHandle, intX, intY)

Description

It copies the source image into destination image, at spefied 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 corresponing to horizontal location where place source image in destination image.
intY: integer value corresponing 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);