void Rotate() { var angle = Parameters["Angl"] as DoubleParameter; if (angle != null) { Console.WriteLine("Rotate: " + angle.Value); SelectedLayer.TransformRotate(GetRad(angle.Value), true, 0, 0, true, false); } }