Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, July 26, 2013 10:31:16 PM(UTC)

anjali  
anjali

Groups: Registered
Posts: 43


I am using LT17.5 and VB.net.
I want to pan the image using RasterImageViewer control. Image is loaded into the control as fit to using RasterPaintSizeMode as Fit. I want to pan the image without scrollbars and without zoom.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, July 29, 2013 4:03:30 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


Panning the image with SizeMode is set to fit means part of the image will go outside the viewer and will not be visible as shown in attached illustration. Is this what you're trying to do? If yes, there is no default mode in our viewer and you can achive that using mouse move events and custom paint.

If that is not what you need, please send me more details about your requirement and what are you trying to achieve.
mohamed attached the following image(s):
PanFit.png
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Wednesday, July 31, 2013 9:19:21 PM(UTC)

anjali  
anjali

Groups: Registered
Posts: 43


In simple word, I want the functionality like 'Offset' in CSMedicalViewerDemo_Original sample provided using RasterImageViewer.
Is there somthing available? Does that controls has some proeprties to achieve the same.
 
#4 Posted : Thursday, August 1, 2013 4:23:17 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


There is no default mode in our viewer that does this.
However, you might be able to achieve that using mouse down/move events and custom painting.

To do the custom painting, you will need to disable the default painting of the RasterImage in our control, and instead perform your own painting using the RasterImagePainter Class. This class allows you to specify the exact rectangle where you want the image to be painted using the Paint Method.

Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.076 seconds.