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 : Thursday, August 20, 2009 3:36:22 AM(UTC)

Krhome  
Krhome

Groups: Registered
Posts: 5


I try to use the pan for put my image outside of the visible part of my RasterImageViewer Control. Can you explain me how I can do it?
Thanks

 

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 : Thursday, August 20, 2009 5:28:03 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

You can load the image on a temporary RasterImage object, then use the RasterImage.Paint Method in the RasterImageViewer to set the desired display rectangle of the image.
 
#3 Posted : Thursday, August 20, 2009 5:48:10 AM(UTC)

Krhome  
Krhome

Groups: Registered
Posts: 5


Thanks for your answer but do you have another way  to make it? Because I have to show this RasterImage many times during the process and with your solution , this RasterImage use a lot of memory.

 
#4 Posted : Sunday, August 23, 2009 1:10:59 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

I can't think of a different way.
However, the memory usage is the same. In my approach, you load the image into an external RasterImage object.
The 'normal' way of displaying an image is load the image into RasterImageViewer.Image instead.

In both cases, you will be holding only one copy of the full bitmap in memory.
What do you mean that the RasterImage uses a lot of memory?
 
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.132 seconds.