Пример #1
0
        RegionPlus(HRGN hRgn)
        {
            GpRegion region = new GpRegion();

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

            SetNativeRegion(region);
        }
Пример #2
0
        RegionPlus()
        {
            GpRegion region = new GpRegion();

            lastResult = NativeMethods.GdipCreateRegion(out region);

            SetNativeRegion(region);
        }
Пример #3
0
        RegionPlus(GraphicsPath path)
        {
            GpRegion region = new GpRegion();

            lastResult = NativeMethods.GdipCreateRegionPath(path.nativePath, out region);

            SetNativeRegion(region);
        }
Пример #4
0
        RegionPlus(GpRect rect)
        {
            GpRegion region = new GpRegion();

            lastResult = NativeMethods.GdipCreateRegionRectI(ref rect, out region);

            SetNativeRegion(region);
        }
Пример #5
0
        Clone()
        {
            GpRegion region = new GpRegion();

            SetStatus(NativeMethods.GdipCloneRegion(nativeRegion, out region));

            return(new RegionPlus(region));
        }
Пример #6
0
        RegionPlus(byte[] regionData)
        {
            GpRegion region = new GpRegion();

            lastResult = NativeMethods.GdipCreateRegionRgnData(regionData, regionData.Length,
                                                               out region);

            SetNativeRegion(region);
        }
Пример #7
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);
            }
        }
Пример #8
0
 GdipSetEmpty(GpRegion region);
Пример #9
0
 GdipSetInfinite(GpRegion region);
Пример #10
0
 GdipGetRegionData(GpRegion region, byte[] buffer, uint bufferSize,
                   out uint sizeFilled);
Пример #11
0
 GdipIsVisibleRegionPoint(GpRegion region, float x, float y,
                          GpGraphics graphics, out bool result);
Пример #12
0
 GdipIsEqualRegion(GpRegion region, GpRegion region2,
                   GpGraphics graphics, out bool result);
Пример #13
0
 GdipGetRegionDataSize(GpRegion region, out uint bufferSize);
Пример #14
0
 GdipCloneRegion(GpRegion region, out GpRegion cloneRegion);
Пример #15
0
 GdipCombineRegionPath(GpRegion region, GpPath path, CombineMode combineMode);
Пример #16
0
 GdipGetRegionBoundsI(GpRegion region, GpGraphics graphics,
                      out GpRect rect);
Пример #17
0
 void SetNativeRegion(GpRegion nativeRegion)
 {
     this.nativeRegion = nativeRegion;
 }
Пример #18
0
 GdipTranslateRegionI(GpRegion region, int dx, int dy);
Пример #19
0
 GdipTranslateRegion(GpRegion region, float dx, float dy);
Пример #20
0
 GdipCombineRegionRegion(GpRegion region, GpRegion region2,
                         CombineMode combineMode);
Пример #21
0
 GdipDeleteRegion(GpRegion region);
Пример #22
0
 GdipCreateRegionRgnData(byte[] regionData, int size,
                         out GpRegion region);
Пример #23
0
 RegionPlus(GpRegion nativeRegion)
 {
     SetNativeRegion(nativeRegion);
 }
Пример #24
0
 GdipCombineRegionRectI(GpRegion region, ref GpRect rect,
                        CombineMode combineMode);
Пример #25
0
 GdipGetRegionHRgn(GpRegion region, GpGraphics graphics, out HRGN hRgn);
Пример #26
0
 GdipCreateRegionHrgn(HRGN hRgn, out GpRegion region);
Пример #27
0
 GdipIsEmptyRegion(GpRegion region, GpGraphics graphics,
                   out bool result);
Пример #28
0
 GdipIsInfiniteRegion(GpRegion region, GpGraphics graphics,
                      out bool result);
Пример #29
0
 GdipFillRegion(GpGraphics graphics, GpBrush brush,
                GpRegion region);
Пример #30
0
 GdipCreateRegionPath(GpPath path, out GpRegion region);