added simple "easing" effect to zoom animation

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2330 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
JKlingen 2012-11-28 20:52:58 +00:00
commit a1931b790d

View file

@ -448,8 +448,8 @@ namespace Greenshot.Forms {
if (isZooming && captureMode != CaptureMode.Window) {
Invalidate(ZoomArea(lastPos, zoomSize));
if (zoomSize.Width < 200) {
zoomSize.Width += 10;
zoomSize.Height += 10;
zoomSize.Width += (220-zoomSize.Width)/5;
zoomSize.Height += (220-zoomSize.Height)/5;
} else {
isAnimating = false;
}