public override void SetPixel(int x, int y, ColorRgba32 color) { _directImage.SetPixel(x + _viewX, y + _viewY, color); if (_activePencilHistory.ModifiedPoints.Add(new Point(x, y))) { IsModified = true; BitmapAdapter.Invalidate(x, y, 1, 1); } }
public override void ApplyPaste(ArrangerPaste paste) { var notifyEvent = ApplyPasteInternal(paste).Match( success => { AddHistoryAction(new PasteArrangerHistoryAction(Paste)); IsModified = true; CancelOverlay(); BitmapAdapter.Invalidate(); return(new NotifyOperationEvent("Paste successfully applied")); }, fail => new NotifyOperationEvent(fail.Reason) ); _events.PublishOnUIThread(notifyEvent); }
public override void Render() => BitmapAdapter.Invalidate();