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
 Layer Encrypt and Decrypt giving error

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
yogiyang Posted - Oct 27 2015 : 02:34:13
Hello,

I am currently using IE 6.2.0 and trying to implement Layer encryption.

Here is part of the code that I am using:

  MainForm.ImageEnViewMain.LayersCurrent := 0;
  MainForm.ImageEnViewMain.Proc.Encrypt('xxx-xxx-xxx');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 6;
  MainForm.ImageEnViewMain.Proc.Encrypt('yyy-yyy-yyy');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 7;
  MainForm.ImageEnViewMain.Proc.Encrypt('zzz-zzz-zzz');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersSaveToFile(FlName);
  Application.ProcessMessages;

  //Once file is saved Decrypt layers and Save Thumbnail
  MainForm.ImageEnViewMain.LayersCurrent := 0;
  MainForm.ImageEnViewMain.Proc.Decrypt('xxx-xxx-xxx');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 6;
  MainForm.ImageEnViewMain.Proc.Decrypt('yyy-yyy-yyy');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 7;
  MainForm.ImageEnViewMain.Proc.Decrypt('zzz-zzz-zzz');
  Application.ProcessMessages;

  //Code to save Thumbnail
  MainForm.ImageEnViewMain.LayersMergeAll;
  Application.ProcessMessages;
   MainForm.ImageEnViewMain.IO.SaveToFile(ChangeFileExt(SaveDialogPSD.FileName, '.jpg'));



Again this error seems to get generated randomly.

I am using XE6 and compiling 32Bit version of application.

Note: All of the files have layers count greater than 28.

TIA




Yogi Yang
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 27 2015 : 17:45:01
Hi Yogi

I put this code into a loop (with and without the Application.ProcessMessages which should not be necessary) and ran it through 100 times. I could not reproduce an issue.

Please try creating a simple demo that consistently reproduces the issue and email it to us.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com