public void Complement(Region region) { if (region == null) { throw new ArgumentNullException(nameof(region)); } Gdip.CheckStatus(Gdip.GdipCombineRegionRegion(new HandleRef(this, NativeRegion), new HandleRef(region, region.NativeRegion), CombineMode.Complement)); }
public void Exclude(Region region) { ArgumentNullException.ThrowIfNull(region); Gdip.CheckStatus(Gdip.GdipCombineRegionRegion( new HandleRef(this, NativeRegion), new HandleRef(region, region.NativeRegion), CombineMode.Exclude)); }