AddThumbnailByStream Method

Top  Previous  Next

The AddThumbnailByStream method inserts thumbnail (from memory) to the PDF document.  The thumbnail inserted can either be a Bitmap, JPEG, Icon or a Metafile.

 

 

 

Syntax

 

 

 

[VC++]

void AddThumbnailByStream(long Page, long Stream, long StreamSize, long ImageType)

 

[CS]

public abstract new void AddThumbnailByStream ( Int32 Page , Int32 Stream , Int32 StreamSize , TxgtImageType ImageType )

 

[VB]

Sub AddThumbnailByStream(Page As Long, Stream As Long, StreamSize As Long, ImageType As TxgtImageType)

 

 

 

 

Parameters

 

 

Page

[in] Page number to which thumbnail needs to be inserted. Specify the Page Number and not the Page Range.

 

 

Stream

[in] Address of the memory buffer where the image needs to be inserted is read into.

 

 

StreamSize

Size of the memory buffer of the image that needs to be inserted.

 

 

ImageType

The type of the image that the stream corresponds to, such as itBMP, itMetafile, itIcon, itJPEG. For Bitmap pass itBMP, for Metafile pass itMetafile, for Icon pass itIcon, and for JPEG pass itJPEG.

 

 

 

See Tutorial-Thumbnails