Load thumbnail image into PictureBox from directory

Posted by zaidwaqi on Stack Overflow See other posts from Stack Overflow or by zaidwaqi
Published on 2010-05-30T05:58:38Z Indexed on 2010/05/30 6:02 UTC
Read the original article Hit count: 338

Filed under:
|
|

Hi, I use the following code to get thumbnail of image in Resources, and display on Picturebox.

Image tmp = (System.Drawing.Image)myManager.GetObject(tempImage);
                cfgPassPicture[m].Image = tmp.GetThumbnailImage(40, 40, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), System.IntPtr.Zero);

How do I do this for images in directory (instead of resources), given only the URL? I can load image into PictureBox via ImageLocation property, but not sure how to use Image property of PictureBox for this.

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about image