Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm using .NET framework 4.
I have big image of size 300MB that i need to display on screen without scaling to fit on screen.
I put the image in canvas and let it be moved by TranslateTransform operation.
The canvas size is the same of the image without scaling.
While scrolling the image it takes a lot of time to move it.
Is there any solution from WPF to get better scroll performance or i need to control it differently by calculating the display portion from the image and transfer only it to WPF?
Posted
Updated 21-Dec-10 21:20pm
v2

1 solution

IMO for high performance in scrollviewer, there is this feature:

XML
ScrollViewer.IsDeferredScrollingEnabled="True"


A few links regarding scrollviewer:

http://blogs.msdn.com/b/llobo/archive/2008/06/05/new-features-scrollviewer-isdeferredscrollingenabled-alternationcount-ieditablecollectionview.aspx[^]

http://msdn.microsoft.com/en-us/library/cc716879.aspx[^]
 
Share this answer
 
Comments
Dudi Avramov 23-Dec-10 16:05pm    
Thanks for your reply.
However, i forget to mention that i don't use ScrollerViewer.
The idea is to hold the image with the mouse and move it by draging the mouse.
Currently i get the calculate the delta of the mouse movement and use TranslateTransform of the canvas to move it. The problem is that for huge images it hardly move.
One more thing is that my graphic card is 1GB, and the image size is 500MB.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900