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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Not overwriting existing files with the same name

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bmesser 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.
1   L A T E S T    R E P L I E S    (Newest First)
bmesser Posted - Oct 19 2013 : 10:20:09
Forget that question!

I was in the twilight zone, I was looking at the file create time and not the modified time!