Esempio 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));
        }
Esempio 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));
        }