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
 Hash does not change after Proc.RoundImage
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

943 Posts

Posted - Feb 01 2025 :  11:22:01  Show Profile  Reply
CodeSite.Send('Hash 1', ImageEnView1.IEBitmap.GetHash());

ImageEnView1.Proc.SaveUndo();
ImageEnView1.Proc.RoundImage(16, 16);
ImageEnView1.Update;

CodeSite.Send('Hash 2', ImageEnView1.IEBitmap.GetHash()); // same HASH!!


Although the image visually changes, the Hash is still the same after the Proc.RoundImage operation!

xequte

38754 Posts

Posted - Feb 02 2025 :  21:05:27  Show Profile  Reply
Hi Peter

RoundImage() only modifies the alpha channel, so does not affect the hash of the image bitmap. Please email me for the the latest beta which includes a parameter to consider the alpha channel too.

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