I'm using ImageMan 3.1 for .NET. I need to be able to print the current view of the displayed image. In other words, I want the user to be able to print exactly what can be seen in the control after they zoom in/out and scroll the image.
What's the best way to accomplish that?
You can use the ImImage .Print method overload which takes the portion of the image to print. You can get the current image from the viewer control at viewer1.Images.CurrentImage.
You can get the portion of the image thats displayed from the viewer.ScrollableOrigin values to get the upper left corner values and the ScrollabeRegion to get the with/height of the portion displayed.
If you need some sample code please let me know if you need C# or VB.Net and the Visual Studio version you are using.
Thanks for your interest in our products and please let us know if you have any questions.
Data Techniques Support
You do need to do some sanity checking on the ScrollableRegion/Origin values ot make sure they are not < 0 and not > than the image with/height but thats the basic code.
I'll whip up some code tomorrow for you if you wish.
This question is closed to new answers.