public void Complement(GraphicsPath path) { if (path == null) { throw new ArgumentNullException(nameof(path)); } Gdip.CheckStatus(Gdip.GdipCombineRegionPath(new HandleRef(this, NativeRegion), new HandleRef(path, path._nativePath), CombineMode.Complement)); }
public void Exclude(GraphicsPath path) { ArgumentNullException.ThrowIfNull(path); Gdip.CheckStatus(Gdip.GdipCombineRegionPath( new HandleRef(this, NativeRegion), new HandleRef(path, path._nativePath), CombineMode.Exclude)); }