Post
by kylex » Thu Aug 09, 2007 12:02 am
Hi, I discovered that slow scrolling was caused by CPU-intensive interpolation mode: using nearest neighbor improved a lot the scrolling speed. However, even when a fast kind of interpolation is selected, randomly (zooming or loading various pictures), scrolling becomes slow again as a slow interpolation was used, and picture is viewed in higher quality than it should be. Setting interpolation mode explicitly, every time a picture is loaded, didn't help.
It seems that gdViewer does not always apply the interpolation mode set with the property InterpolationMode and randomly falls back to a default CPU-intensive mode.
However I noticed that when this happens, if i set ZoomMode to Zoom100 (and only for this value) the problem disappears, scrolling is fast again and picture is rendered in low quality as it should be.
The bug is particularly evident when I execute the Rotate90 method or after twain acquire, as described previously: in this cases the property InterpolationMode is always ignored and scrolling and viewing is always becomes CPU-intensive; setting ZoomMode to Zoom100 doesn't change anything.
Thanks for the answer.