Accusoft.ThumbnailXpress6.Net
ToHbitmap Method




This returns a handle to a device dependent bitmap copy of the thumbnail image. Returns null if item is a directory.
Syntax
'Declaration
 
Public Function ToHbitmap() As IntPtr
'Usage
 
Dim instance As ThumbnailItem
Dim value As IntPtr
 
value = instance.ToHbitmap()
public IntPtr ToHbitmap()
public: IntPtr ToHbitmap(); 
public:
IntPtr ToHbitmap(); 

Return Value

The HBitmap.
Remarks

A device dependent bitmap is also referred to as a GDI bitmap in some documentation sources.

It is the caller's responsibility to free the HBitmap. The member function DisposeHbitmap has been provided for this purpose

Attempting to access this method for an item whose image is currently being generated due to the item having been added to or inserted into the ThumbnailItemCollection will invoke an System.InvalidOperationException. In this situation, use the ThumbnailXpressEvents.ItemCompleteEventHandler event to determine when an item's image has completed being generated before attempting to access its image data.

See Also

Reference

ThumbnailItem Class
ThumbnailItem Members
ToHdib(ToHdibMethod) Method
Bitmap Property

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback