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:
RKrom 2012-12-02 12:49:44 +00:00
commit ce632b1496
4 changed files with 248 additions and 37 deletions

View file

@ -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;