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
 Save all images from ImageEnMView to hard drive
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Amélie

France
9 Posts

Posted - Jul 19 2024 :  04:44:28  Show Profile  Reply
Hi,

I want to save all the images that are in: "ImageEnMView1" under the extension '.png' and '.bmp' in the hard drive. The following code does not work.
What is the error in this code please?

if SaveImageEnDialog_PNG.Execute then   begin
          ImageEnMView1.MIO.SaveToFile(SaveImageEnDialog_PNG.FileName + '.png');
        end;




Hello

xequte

38418 Posts

Posted - Jul 19 2024 :  17:06:53  Show Profile  Reply
Hi

Using MIO.SaveToFile will try to save all the images as a single multi-frame format (e.g. a TIFF or GIF). You should iterate the files using: ImageEnMView1.GetImageToFile(). Please see the example at:

http://www.imageen.com/help/TImageEnMView.GetImageToFile.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Amélie

France
9 Posts

Posted - Jul 19 2024 :  18:06:45  Show Profile  Reply
Hi Nigel,

Thank you for your reply. In "ImageEnMView1", Images are retrieved from the scanner.
So this solution cannot be applied in my case. Is there a solution to this problem please?
Thank you !!

Hello
Go to Top of Page

xequte

38418 Posts

Posted - Jul 20 2024 :  15:04:29  Show Profile  Reply
Sorry, I'm not following. With this method it makes no difference how you put the images into the TImageEnMView

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: