/// <summary> /// Initializes a new instance of the PixelUndoTask /// </summary> /// <param name="bitmap">The target bitmap for hte undo operation</param> /// <param name="description">A description to use for this UndoTask</param> /// <param name="tracker">The pixel histroy tracker that contains the information to use on this PerPixelUndoTask</param> public PerPixelUndoTask(Bitmap bitmap, string description, PixelHistoryTracker tracker) : base(bitmap) { _description = description; _pixelHistoryTracker = tracker; }
/// <summary> /// Initializes a new instance of the PixelUndoTask /// </summary> /// <param name="bitmap">The target bitmap for hte undo operation</param> /// <param name="description">A description to use for this UndoTask</param> /// <param name="keepReplacedUndos"> /// Whether to keep the first color of pixels that are being replaced. When replacing with this flag on, only the redo color is set, the original undo color being unmodified. /// </param> public PerPixelUndoTask(Bitmap bitmap, string description, bool keepReplacedUndos = false) : base(bitmap) { _description = description; _pixelHistoryTracker = new PixelHistoryTracker(keepReplacedUndos, bitmap.Width); }