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
 scan all the images of a directory
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Bill

France
7 Posts

Posted - Oct 25 2016 :  14:40:58  Show Profile  Reply
Hello,

I want to scan all the images of a directory and save them later in another directory.

How to do this please? if you have an example, it would be nice.

Thank you for your help.

Best regards.

w2m

USA
1990 Posts

Posted - Oct 25 2016 :  16:51:03  Show Profile  Reply
What do you mean by "Save them later in another directory"? Save them when?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Bill

France
7 Posts

Posted - Oct 25 2016 :  18:20:45  Show Profile  Reply
hello,
yes save them later in another directory.Save them after ( save image by image scanning after each scan)
Go to Top of Page

xequte

38616 Posts

Posted - Oct 25 2016 :  20:50:29  Show Profile  Reply
Why not just copy the files to the new folder?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Nov 08 2016 :  09:05:34  Show Profile  Reply
Instead of copying file as suggested by Nigel. I use the following code because when I load and Image in ImageEn and save it the size of image is reduced substantially:

// Copy all photos loaded in ImageEnM to the project folder
ieMain.Clear;
for I := 0 to iemComments.ImageCount - 1 do
begin
  ImageFileName := iemComments.ImageFileName[I];
  ieMain.IO.LoadFromFile(ImageFileName);
  NewImageFileName := NewFolder + ExtractFileName(ImageFileName);
  ieMain.IO.Params.JPEG_Quality := 90;
  ieMain.IO.Params.JPEG_Smooth := 3;
  ieMain.IO.Params.JPEG_Progressive := false;
  ieMain.IO.SaveToFileJpeg(ImageFileName);
  ieMain.Clear;
end;

HTH


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: