Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public void Exclude(Region region)
        {
            ArgumentNullException.ThrowIfNull(region);

            Gdip.CheckStatus(Gdip.GdipCombineRegionRegion(
                                 new HandleRef(this, NativeRegion),
                                 new HandleRef(region, region.NativeRegion),
                                 CombineMode.Exclude));
        }