Adds an image to the current page.

 

   

Syntax
 

ImageID = Doc.AddImage(ImageSpec [, Frame [, SrcRect]])

 

   

Params
 
Name Type Description
ImageSpec Object The image to be added to the page.
Frame Long Some image formats support multiple frames or pages. You can specify the frame you want added using this optional argument. The default is one to indicate the first frame.
SrcRect String Some image formats support source rectangles. You can specify the portion of the image you want drawn using this optional argument. The default value is the rectangle encompassing the entire image.
ImageID Long The ID of the newly added Image object.

 

   

Notes
 

Adds an image to the current page returning the ID of the newly added object.

This method attempts to make a sensible decision as to which of the following methods to call dependent on the content of the ImageSpec.

This method is provided for backward compatibility. You should call the appropriate method directly rather than working via this method.

 

   

Example
 

None.