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

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

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