Pan and zoom

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
vincent
Posts: 2
Joined: Thu Aug 31, 2017 8:01 pm

Pan and zoom

Post by vincent » Thu Aug 31, 2017 8:20 pm

Hi, I'm currently trying out the trial version and I'm looking for a set of tools which can handle large images with ease. I need to be able to draw on images much like the annotations functions. I hope I can use this software to implement certain functions:

- Is is possible to set the right-mouse button as a pan button (so if user presses the rightmousebutton panning is turned on) then at the same time allow the mousewheel to act as zoom in-out at focused on the mouse position?

I think these features are a common standard in graphical applications but I didn't seem to get it to work in the provided samples (or I just havent opened the correct one yet).

Then finally, I was wondering about the OCR module, I have no real use for it (yet) however, if OCR allows searching for specific patterns instead of text then that would be really awesome! I would like to scan 200+ schematic images for symbols and mark them with an annotation.

I hope you can help me with these questions!

Alex
Site Admin
Posts: 1460
Joined: Thu Jul 10, 2008 2:21 pm

Re: Pan and zoom

Post by Alex » Fri Sep 01, 2017 11:03 am

Hello,
Is is possible to set the right-mouse button as a pan button (so if user presses the rightmousebutton panning is turned on) then at the same time allow the mousewheel to act as zoom in-out at focused on the mouse position?
Yes, you can change the action button of visual tool using the VisualTool.ActionButton property:
https://www.vintasoft.com/docs/vsimagin ... utton.html

Here is a code snippet:

Code: Select all

Pan pan = new Pan();
pan.ActionButton = System.Windows.Forms.MouseButtons.Right;

Then finally, I was wondering about the OCR module, I have no real use for it (yet) however, if OCR allows searching for specific patterns instead of text then that would be really awesome! I would like to scan 200+ schematic images for symbols and mark them with an annotation.
Our OCR engine is based on Tesseract OCR. Please check if Tesseract OCR supports functionality, which is necessary for you.

Best regards, Alexander

vincent
Posts: 2
Joined: Thu Aug 31, 2017 8:01 pm

Re: Pan and zoom

Post by vincent » Fri Sep 01, 2017 2:06 pm

Thanks Alex for your quick reply, my initial tests look promising so I'm now going to replace some of our controls with these to see if problems arise, if any. For the OCR part, we don't need it right now since our clients don't have this feature yet but nice to have. I will look into the Tesseract OCR project on GitHub in a later stadium.

Thanks again

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests