bmesser
  
United Kingdom
234 Posts |
Posted - Oct 19 2013 : 10:13:00
|
Hi
I am creating a number of images inside a for next loop. I start of by clearing the layers and add a bitmap that I capture from the form. I add a 'watermark' overlay as a new layer from a transparent PNG image before merging the images in the ImageEnView component before saving the whole thing as a PNG. I repeat the process a number of times after updating the form that I'm capturing the BMP from. All works well if the original folder is empty. If I repeat the process when the file all ready exist the old files are not overwritten even though I do perform a
Image.IO.SaveToFilePNG(path);
each time, no exception is raised as far as I see the files just don't get updated. I though they might be an IO parameter to prevent existing files getting overwritten but I can't see one.
Is this normal, and if it is, is there a way to force an overwrite, or have I entered the twilight zone again?
Bruce. |
|