Accusoft.ThumbnailXpress6.Net
Get Thumbnail Information

All thumbnail images are generated with unique IDs and are cached for rapid display access purposes. Access the properties within the ThumbnailItem for information about the thumbnail, including the name of the file from which the thumbnail was generated (Filename), and the page within the file that the thumbnail represents (Page).

The thumbnail image can be acquired as an ToHbitmap, ToHdib, or Bitmap.

Information about the thumbnail will not be available until generation of the thumbnail is complete. Use the ItemComplete event to ensure that generation is complete prior to checking thumbnail information.
C#
Copy Code
// When generation of the thumbnail item is complete, get the filename and page number of the
// thumbnail item and pass the thumbnail image to an ImagXpress ImageXView object to display it.
private void ThumbnailXpress1_ItemComplete(object sender, ItemCompleteEventArgs e)
{
  labelFilename.Text = ThumbnailXpress1.Items[e.ItemIndex].Filename;
  labelPage.Text = ThumbnailXpress1.Items[e.ItemIndex].Page.ToString();
  imageXView1.Image = ImageX.FromHdib(imagXpress1,ThumbnailXpress1.Items[e.ItemIndex].Hdib);
}
See Also

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback