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
 Strange Zoom Filter Effect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sybaritica

Canada
10 Posts

Posted - Oct 10 2021 :  09:44:33  Show Profile  Reply
This is less a question than a notification of something I discovered.

I adopted the code from the DisplayAdjust Demo to limit brightness and contrast adjustments to the area selected: To wit,

   ImageEnView1.IEBitmap.AdjustmentsMask.Assign( ImageEnView1.SelectionMask );
   if ImageEnView1.IEBitmap.AdjustmentsMask.IsEmpty then
     ImageEnView1.IEBitmap.AdjustmentsMask.Fill();
   ImageEnView1.Update();


This was not working with my application. Any Contrast or Brightness change was applied to the entire image whether or not there was an active selection. It turns out that the following line in my startup code was causing this result.

Pic.ZoomFilter := rfLanczos3;

It appears that Setting a ZoomFilter other than rfNone has the above effect.

Just FYI

xequte

6420 Posts

Posted - Oct 10 2021 :  20:52:51  Show Profile  Reply
Thank you.

We can reproduce this and are investigating.

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

xequte

6420 Posts

Posted - Oct 11 2021 :  21:05:17  Show Profile  Reply
You can email me for a fix for this.

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

Sybaritica

Canada
10 Posts

Posted - Oct 12 2021 :  08:41:42  Show Profile  Reply
Hi Nigel ...

I would like to receive a copy of the fix. The Form mail system will not allow me to send e-mail to others (apparently I haven't made enough posts, or something?).

Cheers

John T.
Go to Top of Page

xequte

6420 Posts

Posted - Oct 12 2021 :  17:00:31  Show Profile  Reply
Sorry John,

I see you are not a source code user, and at present the fix is source code only. Please wait until the official 10.2.1 release.

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

Sybaritica

Canada
10 Posts

Posted - Oct 12 2021 :  17:16:08  Show Profile  Reply
Oh, no problem. I have a workaround for now. I am wondering, though, if the TImageEnview OnSelectionChange event could be fired by programmatic changes as well as user interaction? My current workaround in this instance also needs to work around the fact that it doesn't.
Go to Top of Page

xequte

6420 Posts

Posted - Oct 13 2021 :  21:46:27  Show Profile  Reply
Hi

OnSelectionChange is only for user changes, so call the OnSelectionChange event after your selection change code.

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