private void InvalidateSelection() { if (selection != null) { unSelection = new PdnRegion(new Rectangle(0, 0, surface.Width, surface.Height)); unSelection.Exclude(selection); selectionOutline = selection.GetOutline(surface.Bounds, scale); } canvas.Invalidate(); }