Saturday, 15 May 2010

c# - How to store a set of images after internal processing? -



c# - How to store a set of images after internal processing? -

i've been trying save set of image after processing. here i've been doing: 1 - files directory 2 - processing them 3 - saving

as illustration: have 128 images in folder when seek process them , save 1 time again (the program) save few of them. here code.

foreach (string file in directory.enumeratefiles(path, "*.bmp")) { bitmap bmp = new bitmap(file); string path = txtnewpath.text+ randonimagename + ".bmp"; processimage(bmp).save(path); }

it seems path saving processed images not beingness changed each image.

string path = txtnewpath.text+ imagename + ".bmp";

you have alter variable imagename based on current enumerated file variable.

c# image

No comments:

Post a Comment