Beispiel #1
0
        RegionPlus(HRGN hRgn)
        {
            GpRegion region = new GpRegion();

            lastResult = NativeMethods.GdipCreateRegionHrgn(hRgn, out region);

            SetNativeRegion(region);
        }
Beispiel #2
0
        RegionPlus FromHRGN(HRGN hRgn)
        {
            GpRegion region = new GpRegion();

            if (NativeMethods.GdipCreateRegionHrgn(hRgn, out region) == GpStatus.Ok)
            {
                RegionPlus newRegion = new RegionPlus(region);

                if (newRegion == null)
                {
                    NativeMethods.GdipDeleteRegion(region);
                }

                return(newRegion);
            }
            else
            {
                return(null);
            }
        }
Beispiel #3
0
 GdipSetClipHrgn(GpGraphics graphics, HRGN hRgn, CombineMode combineMode);
Beispiel #4
0
 GdipGetRegionHRgn(GpRegion region, GpGraphics graphics, out HRGN hRgn);
Beispiel #5
0
 GdipCreateRegionHrgn(HRGN hRgn, out GpRegion region);