Exemplo n.º 1
0
 public virtual void InvertColor()
 {
     if (this.Image == null)
     {
         return;
     }
     ImageProcessor.InvertBitmapSafe(this.Image);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Inverts the current image and tracks the change.
        /// </summary>
        public void InvertBitmap()
        {
            if (CurrentBitmap == null)
            {
                return;
            }

            TrackChange(BitmapChanges.Inverted);

            if (!ImageProcessor.InvertBitmapSafe(CurrentBitmap))
            {
                DisposeLastUndo();
                return;
            }
        }