I have found a resource here that shows how to convert IStream to HBITMAP.
Hope this helps: http://mariusbancila.ro/blog/2011/08/04/display-images-as-you-type-in-cpp/
Pregunta
I am working with WPD (Windows Portable Devices) API, and I have a problem. I have obtained images, video, mp3 objects on a device, and now I want to show a thumbnail of images on CListCtrl
. I have used the following to get Stream
of image objects:
pd_resource->GetStream(objectID,WPD_RESOURCE_THUMBNAIL, STGM_READ, &optimal_transfer_size, &src_data_stream)
How do I convert this Stream
resource to CBitmap
?
Please help me! Thanks so much!
Solución
I have found a resource here that shows how to convert IStream to HBITMAP.
Hope this helps: http://mariusbancila.ro/blog/2011/08/04/display-images-as-you-type-in-cpp/