Cannot use GetThumbnailImage

Summary

Id: 4579.1
Type: Bug Bug
Current Status: Open

Detail

8 Sep 2003 Open Tony Starkey

I was looking at the GDI+ wrapper and trying to figure out how to resize an image in memory (w/o drawing to a picturebox, etc). I assumed this could be done with the GetThumbnailImage of the GDIPImage class, but I was unable to successfully call the function. Do you have a sample? In .NET, it appears you can pass Nothing as the last two parameters, but doing the equivalent in VB6 (passing 0 or null) is not correct, and I wasn't sure of the callback function definition, though in .NET it appeared to be a simple function that returned a boolean, so I tried:

Public Function ThumbnailCallback() As Boolean ThumbnailCallback = FalseEnd Function

and...

m_Image.GetThumbnailImage lngWidth, lngHeight, AddressOf ThumbnailCallback, 0

but this too failed. Any guidance would be greatly appreciated.