Click here to Skip to main content
14,383,503 members
Rate this:
Please Sign up or sign in to vote.
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 22:20pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

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[^]
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100