Skip to content

Commit

Permalink
Support zooming in the Rotate/Zoom dialog.
Browse files Browse the repository at this point in the history
Bug: #1252756
  • Loading branch information
cameronwhite committed Mar 29, 2015
1 parent 0dd92b0 commit 7abd1a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Pinta/Actions/Layers/RotateZoomLayerAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private static Matrix ComputeMatrix (RotateZoomData data)

xform.Translate (x, y);
xform.Rotate ((-data.Angle / 180d) * Math.PI);
xform.Scale (data.Zoom, data.Zoom);
xform.Translate (-x, -y);

return xform;
Expand All @@ -111,6 +112,9 @@ private class RotateZoomData : EffectData
[Caption ("Angle")]
public double Angle = 0;

[Caption ("Zoom"), MinimumValue (0), MaximumValue (16)]
public double Zoom = 1.0;

public override bool IsDefault {
get { return Angle == 0; }
}
Expand Down

0 comments on commit 7abd1a1

Please sign in to comment.