ImageGlass.frmMain.mnuMainRotateClockwise_Click C# (CSharp) Method

mnuMainRotateClockwise_Click() private method

private mnuMainRotateClockwise_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void mnuMainRotateClockwise_Click(object sender, EventArgs e)
        {
            if (picMain.Image == null || picMain.CanAnimate)
            {
                return;
            }

            Bitmap bmp = new Bitmap(picMain.Image);
            bmp.RotateFlip(RotateFlipType.Rotate90FlipNone);
            picMain.Image = bmp;

            try
            {
                LocalSetting.ImageModifiedPath = GlobalSetting.ImageFilenameList[GlobalSetting.CurrentIndex];
            }
            catch { }
        }
frmMain