Extract an image from data and add it to the current page.

 

   

Syntax
 

[C#]
int AddImageData(byte[] data)
int AddImageData(byte[] data, int frame)

[Visual Basic]
Function AddImageData(data() As Byte) As Integer
Function AddImageData(data() As Byte, frame As Integer) As Integer

Throws Exceptions may throw Exception()

 

   

Params
 
Name Description
data

The data containing the image in a format such as JPEG or TIFF.

frame

Some image types support multiple frames or pages. This is the one based index specifying the required frame (default one).

return The ID of the newly added Image Object.

 

   

Notes
 

Extract an image from a chunk of data and add it to the current page returning the ID of the newly added object.

This method is essentially the same as AddImageFile but it allows you add images specified as raw data rather than as a file path

 

   

Example
 

None.