J
Jon
I am writing a graphics application that
supports "zooming". I have implemented some code that
forces the zoom to occur around the center of the client
window. So, the code recalculates the PageScale, which
will be changed when the Paint event is called, then
calculates the offset required to return the original
center coordinate to the center of the client window after
the zooming has occurred.
However, when I use the AutoScrollPosition to set the
offset distance, the program is repainting only part of
the client window. The last command of the method calls
the Invalidate() method, which corrects the screenshot.
However, the brief incorrect repainting is causing
a "flicker".
Any suggestions?
supports "zooming". I have implemented some code that
forces the zoom to occur around the center of the client
window. So, the code recalculates the PageScale, which
will be changed when the Paint event is called, then
calculates the offset required to return the original
center coordinate to the center of the client window after
the zooming has occurred.
However, when I use the AutoScrollPosition to set the
offset distance, the program is repainting only part of
the client window. The last command of the method calls
the Invalidate() method, which corrects the screenshot.
However, the brief incorrect repainting is causing
a "flicker".
Any suggestions?