I have a question in regards to the code below. The code I have below successfully runs through a directory, and sets the resoultion of the picture to a smaller size. Howe
private void button4_Click(object sender, EventArgs e)
{
String[] files;
int count = 0;
files = System.IO.Directory.GetFiles(@"C:/dataset");
foreach (string file in files)
{
Bitmap tempBmp = new Bitmap(file);
Bitmap bmp = new Bitmap(tempBmp, 200, 200);
bmp.Save(
@"C:/Newdataset1/" + count + ".jpg",
System.Drawing.Imaging.ImageFormat.Jpeg);
count++;
}
}