Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: c++ Function EnableCenterOnZoom for c#
Started by ingo at 11-07-2008 6:58. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  11-07-2008, 6:58
ingo is not online. Last active: 11/7/2008 11:54:29 AM ingo

Top 500 Posts
Joined on 11-07-2008
Posts 8
c++ Function EnableCenterOnZoom for c#
Reply Quote
Hello,

my problem is i used in c++ the function EnableCenterOnZoom, but in C# examples i can't find the appropriate function.
Can u help me, to get an example?

Thanks
ingo

   Report 
  11-09-2008, 11:26
Yasir Alani is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: c++ Function EnableCenterOnZoom for c#
Reply Quote
Ingo,

Which version of LEADTOOLS .NET components are you using?


Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
  11-10-2008, 3:20
ingo is not online. Last active: 11/7/2008 11:54:29 AM ingo

Top 500 Posts
Joined on 11-07-2008
Posts 8
Re: c++ Function EnableCenterOnZoom for c#
Reply Quote
Hello Yasir,

i am using Lead 14.5.0.16.
The Option RasterImageViewer.HorizontalAlignMode  and RasterImageViewer.VerticalAlignMode doesn't exist.
In which version of Raster Image Viewer these properties are available?

Thank you
Ingo



   Report 
  11-10-2008, 10:46
Yasir Alani is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: c++ Function EnableCenterOnZoom for c#
Reply Quote
After zooming the image you can use the RasterImageViewer.CenterAtPoint Method to center the viewer to the center of the zoomed rectangle. Please try this and let me know if this worked with you.

About the RasterImageViewer members HorizontalAlignMode and VerticalAlignMode, they have been added in v15 of our toolkit.

Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
  11-13-2008, 3:02
ingo is not online. Last active: 11/7/2008 11:54:29 AM ingo

Top 500 Posts
Joined on 11-07-2008
Posts 8
Re: c++ Function EnableCenterOnZoom for c#
Reply Quote
hi Yasir,

How can i get the ZoomedRectangle after i set the ScaleFactor for the rasterImageViewer ?

i have tried this, but the result is not ok:

rasterImageViewer1.CenterAtPoint(new Point(e.X, e.Y));

Can u give me an example to Zoom the rasterimageviewer in the middle of the ZoomedRectangle ?

Thanks
Ingo








   Report 
  11-13-2008, 10:20
Yasir Alani is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: c++ Function EnableCenterOnZoom for c#
Reply Quote
Ingo,

If you want to get the currently displayed rectangle in image coordinates, convert the client rectangle of the viewer control to bitmap coordinates using the Leadtools.Helpers.Transformer class.

For more information about the transformation mechanism, refer to the "Transformer Class" topic in the .NET Class Library help file.

Please note that you are using very old build of our DLLs and I recommend that you update with the latest patch before going any further. To get the latest patch, please send an email to support@leadtools.com and mention your serial number(s) in the email.

Do NOT post your serial number here.
Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
Post
LEAD Support Fo... » General » Example Request... » Re: c++ Function EnableCenterOnZoom for c#

Powered by Community Server, by Telligent Systems