hi
i am using windows application in that application i saved picturebox images into one folder.
its working fine. but my aim is before saving that image i crop the image like height is 200 and width is 150.
and images are saved to take these dimensions.
please give a sample solution
Thanks
Loading
FroglegPosted Dec 14, 2010, 7:58 PM
Gomathi PalaniswamyPosted Oct 11, 2010, 8:43 AM
Use thumpnail to change the size
private bool ThumbnailCallback ()
{
return false;
}
private void button1_Click (object sender, System.EventArgs e)
{
Image image = new Bitmap(@"filepath");
Image.GetThumbnailImageAbort Delegate = new Image.GetThumbnailImageAbort(ThumbnailCallback);
pictureBox.Image = image.GetThumbnailImage(200, 150,Delegate, IntPtr.Zero);
}