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
 Writing ImageEnMView images in a file like *.dat.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

exchangeviews

India
39 Posts

Posted - Apr 10 2015 :  09:01:27  Show Profile  Reply
I am looking a way to write each new loaded image of ImageEnMView component to a file say *.DAT and on app_load, need to read each stored image from dat file to display back in ImageEnMView. Any help? Thanks.

xequte

38510 Posts

Posted - Apr 11 2015 :  02:46:32  Show Profile  Reply
Hi

Have you considered SaveSnapshot:

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


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

exchangeviews

India
39 Posts

Posted - Apr 11 2015 :  09:53:09  Show Profile  Reply
Hi Nigel,

Thanks. This is what I was looking for.

One more thing, does it save the same resolution, quality and file size image after using following code which was provided to SaveSnapshot?:

ImageEnMView1.LoadSnapshot('d:\screenshots.db');
  ImageEnMView1.SelectImage(0);
  ImageEnVect1.Assign(ImageEnMView1.Bitmap);
  ImageEnVect1.IO.SaveToFileBMP('d:\test.bmp');
Go to Top of Page

xequte

38510 Posts

Posted - Apr 11 2015 :  12:14:23  Show Profile  Reply
Hi

It will save the current state, so if you change an image and then save it, when loaded it will be the new resolution.

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