mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
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:
parent
8b0f4a75ed
commit
a1931b790d
1 changed files with 2 additions and 2 deletions
|
@ -448,8 +448,8 @@ namespace Greenshot.Forms {
|
||||||
if (isZooming && captureMode != CaptureMode.Window) {
|
if (isZooming && captureMode != CaptureMode.Window) {
|
||||||
Invalidate(ZoomArea(lastPos, zoomSize));
|
Invalidate(ZoomArea(lastPos, zoomSize));
|
||||||
if (zoomSize.Width < 200) {
|
if (zoomSize.Width < 200) {
|
||||||
zoomSize.Width += 10;
|
zoomSize.Width += (220-zoomSize.Width)/5;
|
||||||
zoomSize.Height += 10;
|
zoomSize.Height += (220-zoomSize.Height)/5;
|
||||||
} else {
|
} else {
|
||||||
isAnimating = false;
|
isAnimating = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue