GetThumbnailImage Method

G

GrandpaB

I am having difficulty implementing the GetThumbnailImage
method. I have read the "Help" files on this method, but
remain confused. My problem is understanding the last
two parameters that the method requires. I don't
understand the callback concept in genreal. What are the
callback and callbackData parameters, how are they set up
and how are they used?

Dim MyImage As Image
MyImage = Image.FromFile("C:\Chris6.jpg")
MyImage.GetThumbnailImage(100, 100, callback As _
Image.GetThumbnailImageAbort, callbackData As IntPtr)
pbArt.Image = MyImage

Thanks for your assistance, GrandpaB
 
G

GrandpaB

Success, I found a example using the thumbnail method.
The third line of my code is now:

MyImage = MyImage.GetThumbnailImage(100, 100, Nothing,
New IntPtr)

The code is now working & thumbnails are being created. I
am still in the dark concerning the last two parameters
of the GetthumbnailImage method. Any insight would be
appreciated, thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top