Accusoft.ThumbnailXpressSdk Namespace > ThumbnailItem Class : ToHbitmap Method |
'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();
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.