ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Not overwriting existing files with the same name
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
234 Posts

Posted - Oct 19 2013 :  10:13:00  Show Profile  Reply
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.

bmesser

United Kingdom
234 Posts

Posted - Oct 19 2013 :  10:20:09  Show Profile  Reply
Forget that question!

I was in the twilight zone, I was looking at the file create time and not the modified time!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: