Beispiel #1
0
        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));
        }
Beispiel #2
0
        public void Exclude(GraphicsPath path)
        {
            ArgumentNullException.ThrowIfNull(path);

            Gdip.CheckStatus(Gdip.GdipCombineRegionPath(
                                 new HandleRef(this, NativeRegion),
                                 new HandleRef(path, path._nativePath),
                                 CombineMode.Exclude));
        }