Exemplo n.º 1
0
        Equals(RegionPlus region,
               GraphicsPlus g)
        {
            bool booln = false;

            SetStatus(NativeMethods.GdipIsEqualRegion(nativeRegion,
                                                      region.nativeRegion,
                                                      g.nativeGraphics,
                                                      out booln));
            return(booln);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
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);
            }
        }
Exemplo n.º 4
0
       Equals(RegionPlus region,
                       GraphicsPlus g)
        {
            bool booln = false;

            SetStatus(NativeMethods.GdipIsEqualRegion(nativeRegion,
                                                      region.nativeRegion,
                                                      g.nativeGraphics,
                                                      out booln));
            return booln;
        }
Exemplo n.º 5
0
 Complement(RegionPlus region)
  {
      return SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                    region.nativeRegion,
                                                           CombineMode.CombineModeComplement));
  }
Exemplo n.º 6
0
 Exclude(RegionPlus region)
  {
      return SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                 region.nativeRegion,
                                                           CombineMode.CombineModeExclude));
  }
Exemplo n.º 7
0
 Intersect(RegionPlus region)
  {
      return SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                           region.nativeRegion,
                                                           CombineMode.CombineModeIntersect));
  }
Exemplo n.º 8
0
 public GpStatus FillRegion(BrushPlus brush,
                    RegionPlus region)
 {
     return SetStatus(NativeMethods.GdipFillRegion(nativeGraphics,
                                                 brush.nativeBrush,
                                                 region.nativeRegion));
 }
Exemplo n.º 9
0
 Complement(RegionPlus region)
 {
     return(SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                            region.nativeRegion,
                                                            CombineMode.CombineModeComplement)));
 }
Exemplo n.º 10
0
 Exclude(RegionPlus region)
 {
     return(SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                            region.nativeRegion,
                                                            CombineMode.CombineModeExclude)));
 }
Exemplo n.º 11
0
 Intersect(RegionPlus region)
 {
     return(SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                            region.nativeRegion,
                                                            CombineMode.CombineModeIntersect)));
 }
Exemplo n.º 12
0
 GpStatus Xor(RegionPlus region)
 {
     return SetStatus(NativeMethods.GdipCombineRegionRegion(nativeRegion,
                                                          region.nativeRegion,
                                                          CombineMode.CombineModeXor));
 }