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
 Decrypt and show immediately all images of folder
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ali

Iran
110 Posts

Posted - Oct 15 2019 :  09:02:50  Show Profile  Reply
Hi Nigel

With below code I can open some images.

if OpenImageEnDialog1.Execute then
ImageEnView1.IO.LoadFromFile(OpenImageEnDialog1.FileName);

With below code I can encrypt images and save in folder 'Crypted_Photo'.
ImageEnView1.Proc.Encrypt (Edit1.Text, ieeaTEA2);
ImageEnView1.IO.SaveToFile('c:\Crypted_Photo\crypted1.bmp');

I know which I can Decrypt images with below code.
ImageEnView1.Proc.Decrypt (Edit1.Text, ieeaTEA2);


Can I Decrypt and show immediately all images of folder 'Crypted_Photo' with ImageenMView?
ImageenMView with bulid-in (internally option) property for Decrypt is very useful and very nice!



Best Regards

Ali Abbasi

xequte

38608 Posts

Posted - Oct 15 2019 :  20:35:48  Show Profile  Reply
Hi Ali

There are two ways to handle this:

- Preloading

Load each image into a TIEBitmap, decrypt it, then add to your TImageEnMView


- On-Demand

Virtually fill the TImageEnMView by setting the ImageID, then load and convert the image as necessary in the OnImageIDRequestEx event:

https://www.imageen.com/help/TImageEnMView.OnImageIDRequestEx.html

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

ali

Iran
110 Posts

Posted - Oct 16 2019 :  01:48:06  Show Profile  Reply
Dear Nigel

I will test it and thank you very much.

Regards

Ali Abbasi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: