コード例 #1
0
        public override void ConvertGrayscale()
        {
            if (this.Image == null)
            {
                return;
            }

            Bitmap gray = ImageProcessor.GrayscaleGif(this.Image);

            if (gray == null)
            {
                return;
            }

            bool wasAnimating = StopAnimate(true);

            this.Image.Dispose();
            this.Image = gray;

            if (wasAnimating)
            {
                _StartAnimate();
            }
        }