Hi,
I think once an image has been resized to a lower resolution one, it can
not be restored, because the color information has lost.
For your scenario, I think you may try to use the method below to generate
the thumbnail dynamically.
public bool ThumbnailCallback()
{
return false;
}
private void Form1_Load(object sender, System.EventArgs e)
{
Image img = Image.FromFile(@"c:\Test\TestPIC\a.bmp");
this.pictureBox1.Image = img;
Image.GetThumbnailImageAbort myCallback =
new Image.GetThumbnailImageAbort(ThumbnailCallback);
this.pictureBox2.Image =
img.GetThumbnailImage(32,32,myCallback,IntPtr.Zero);
}
Image.GetThumbnailImage Method
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdrawingimageclassgetthumbnailimagetopic.asp
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.