/* ----------------------------------------------------------------- */ /// /// Rotate /// /// <summary> /// Rotates the selected images and regenerates them. /// </summary> /// /// <param name="src">Source collection.</param> /// <param name="degree">Rotation angle in degree unit.</param> /// /// <returns> /// History item to execute undo and redo actions. /// </returns> /// /* ----------------------------------------------------------------- */ public static HistoryItem Rotate(this ImageCollection src, int degree) { var indices = GetCopiedIndices(src); return(HistoryItem.CreateInvoke( () => src.Rotate(indices, degree), () => src.Rotate(indices, -degree) )); }
/* ----------------------------------------------------------------- */ /// /// Rotate /// /// <summary> /// Rotates the selected images and regenerates them. /// </summary> /// /// <param name="src">Source collection.</param> /// <param name="degree">Rotation angle in degree unit.</param> /// /// <returns> /// History item to execute undo and redo actions. /// </returns> /// /* ----------------------------------------------------------------- */ public static HistoryItem Rotate(this ImageCollection src, int degree) { var indices = src.GetSelectedIndices(); return(HistoryItem.Invoke( () => src.Rotate(indices, degree), () => src.Rotate(indices, -degree) )); }