GdipGetImageThumbnail could be what you need..
It seems you can set the Width and Height using parameters thumbWidth and thumbHeight .Code:Public Declare Function GdipGetImageThumbnail Lib "gdiplus" _ (ByVal image As Long, ByVal thumbWidth As Long, _ ByVal thumbHeight As Long, thumbImage As Long, _ Optional ByVal callback As Long = 0, _ Optional ByVal callbackData As Long = 0) As Long
Another option (more complicated maybe) would be using StretchBlt, but for this one you need Source and Target DC's so in this case you would need 2 PictureBoxes or you could make it the API way and create your DCs with CreateCompatibleDC() API.




Reply With Quote