ReplaceImage

Image handling, Page layout

Description

Replaces an image on the selected page with another image.

The original image is not removed from the document and can be reused. If the original image is no longer needed it can be cleared using the ClearImage function.

Syntax

Delphi

function TPDFlib.ReplaceImage(OriginalImageID, NewImageID: Integer): Integer;

ActiveX

Function PDFlib::ReplaceImage(OriginalImageID As Long, NewImageID As Long) As Long

DLL

int DLReplaceImage(int InstanceID, int OriginalImageID, int NewImageID);

Parameters

OriginalImageIDThe ImageID of the image to be replaced
NewImageIDThe ImageID of the image to replace the existing image