hi there some GDI + APIs to shrink an image before saving.
for example a 500x500 image to 32x32 pass
the opposite GdipGetImageBounds >> GdipSetImageBounds
Thanks
[RESOLVED]
http://foren.activevb.de/cgi-bin/for...t=83942&page=1
Printable View
hi there some GDI + APIs to shrink an image before saving.
for example a 500x500 image to 32x32 pass
the opposite GdipGetImageBounds >> GdipSetImageBounds
Thanks
[RESOLVED]
http://foren.activevb.de/cgi-bin/for...t=83942&page=1
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.