ImageGlass.frmMain.mnuMainRotateCounterclockwise_Click C# (CSharp) Method

mnuMainRotateCounterclockwise_Click() private method

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

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

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