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
 Fast movement of the selection area.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brm121966

USA
53 Posts

Posted - Aug 29 2022 :  21:41:05  Show Profile  Reply
Hello.
The selected area is moved very quickly with the mouse on large-sized images
Tell me how to reduce the speed of moving the selection area.
Thank you.

Rudolf

xequte

38194 Posts

Posted - Aug 29 2022 :  23:08:39  Show Profile  Reply
Hi Rudolf

Using miSelect on a large image? I'm not seeing any issue there. Can you give me more information?

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

brm121966

USA
53 Posts

Posted - Aug 30 2022 :  17:38:11  Show Profile  Reply
Hello Nigel

Image H:3000 x W:4000. Select 250 x 250.
I set the mouse cursor to the center of the selected area.
I press the left key and move the selection area.
The area starts moving at normal speed, but then after a few millimeters the movement speed increases and the selected area moves away from the cursor.
Watch the video attached in the file.

Rudolf


attach/brm121966/202283017417_Video_2022-08-30_183645.zip
1283.1 KB
Go to Top of Page

xequte

38194 Posts

Posted - Aug 30 2022 :  21:03:26  Show Profile  Reply
Hmmm, something peculiar is going on there, but i cannot reproduce it or see an issue with code. Would it be possible to create a very simple demo that shows the issue and upload the source?



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

brm121966

USA
53 Posts

Posted - Sep 02 2022 :  18:19:16  Show Profile  Reply
Hi Nigel.
I had to look for the problem myself, but I found it.
If you add an output function to the SelectionChanging event, you will get this effect.
Example in file.
Thanks.

Rudolf

attach/brm121966/20229218204_ImageEn_Test.zip
5392.55 KB
Go to Top of Page

xequte

38194 Posts

Posted - Sep 04 2022 :  21:50:49  Show Profile  Reply
Hi Rudolf

I don't believe the Application.ProcessMessages(); call is necessary there. If you remove that, it works as expected.

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

brm121966

USA
53 Posts

Posted - Sep 05 2022 :  12:05:25  Show Profile  Reply
Thinks.

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