I created an image-viewing control for my boss that incorporates panning, zooming via the mouse wheel, and drawing a box to zoom to. The control needs to support very large image files (i.e. several thousand pixels on each side).
It all works, but whenever the code is scaling the image the control UI becomes unresponsive. My boss had me use threading to set the scaling code apart from the UI. The scaling code is now definitely on a separate thread but the UI is still bogged down while scaling code is running! Can anyone please help me with this??
Below is the Scaling code. Let me know if this isn't enough to help me and I'll post whatever code you need!
UPDATE: Here's the control code in its entirety. link text