Search code examples
c#wpfdirectxzoomingpanning

WPF or DirectX for panning and zooming a 5000x5000 picture?


my current code is normal WPF with a custom image view. I need to pan and zoom a very high resolution picture but of course it needs a lot of CPU-Power to do this.

My question is: if I change the control from a image view to something like directX will this increase my zoom and panning expirience a lot or isnt there such a big difference? (The graphic card we use is a Nvidia ion2 and the CPU is a intel atom with up to 2 Ghz)


Solution

  • 2D acceleration is not as perfected as 3D is. See benchmarks here. I believe using the picture as a texture and controlling the camera for pan and zoom should increase performance a lot.