mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Added changes for the zoom to animate relative to the cursor position. Also made the first changes to make sure the animation has a frame rate equal to the screen refresh.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2341 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3b9cc41832
commit
ce632b1496
4 changed files with 248 additions and 37 deletions
|
@ -34,6 +34,34 @@ namespace Greenshot.Helpers {
|
|||
protected T current;
|
||||
protected double frames;
|
||||
protected double currentFrame = 0;
|
||||
|
||||
public double Frames {
|
||||
get { return frames; }
|
||||
}
|
||||
|
||||
public double CurrentFrame {
|
||||
get { return currentFrame; }
|
||||
}
|
||||
|
||||
public T First {
|
||||
get { return first; }
|
||||
}
|
||||
|
||||
public T Last {
|
||||
get { return last; }
|
||||
}
|
||||
|
||||
public void ChangeDestination(T last) {
|
||||
ChangeDestination(last, frames);
|
||||
}
|
||||
|
||||
public void ChangeDestination(T last, double frames) {
|
||||
this.first = current;
|
||||
this.currentFrame = 0;
|
||||
this.frames = frames;
|
||||
this.last = last;
|
||||
}
|
||||
|
||||
public EasingType EasingType {
|
||||
get;
|
||||
set;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue