Accusoft.ThumbnailXpress5.Net
AddItemsFromFile Method
See Also  Send Feedback
Accusoft.ThumbnailXpressSdk Namespace > ThumbnailItemCollection Class : AddItemsFromFile Method




filename
The name and path of the image file. Note that the path may specify an internet address such as "http://www.somesite.com/test.jpg" or "ftp://..../test.jpg" with two limitations. PDF Xpress (if used) cannot access internet resident files and internet resident multi-page files of any type cannot be expanded
collectionIndex
The index into the collection where the item(s) should be added/inserted. -1 indicates to append to the end of the collection.
expandMultiPage
Flag indicating whether to use all pages in a multi-page image or not.

Glossary Item Box

Adds a thumbnail item from a single-page image or optionally multiple items (one per page) from a multi-page image to the collection from the provided image file.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

filename
The name and path of the image file. Note that the path may specify an internet address such as "http://www.somesite.com/test.jpg" or "ftp://..../test.jpg" with two limitations. PDF Xpress (if used) cannot access internet resident files and internet resident multi-page files of any type cannot be expanded
collectionIndex
The index into the collection where the item(s) should be added/inserted. -1 indicates to append to the end of the collection.
expandMultiPage
Flag indicating whether to use all pages in a multi-page image or not.

Return Value

The number of items this method added to the collection.

Remarks

This method does not wait for images to be generated before returning. The thumbnail images are generated in the background. This means a thumbnail's image data (for example, its bitmap) is likely not available immediately after this method returns. Use the ThumbnailXpress.ItemComplete event to determine when an item's image has completed being generated before attempting to programmatically access its image data

See Also

©2013. Accusoft Corporation. All Rights Reserved.