public static IntNativeMethods.RegionFlags CombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode) { if (((hRgnDest.Wrapper != null) && (hRgnSrc1.Wrapper != null)) && (hRgnSrc2.Wrapper != null)) { return IntCombineRgn(hRgnDest, hRgnSrc1, hRgnSrc2, combineMode); } return IntNativeMethods.RegionFlags.ERROR; }
/// <summary> /// Combines region1 & region2 into this region. The regions cannot be null. The three regions need not be /// distinct. For example, the sourceRgn1 can equal this region. /// </summary> public IntNativeMethods.RegionFlags CombineRegion(WindowsRegion region1, WindowsRegion region2, RegionCombineMode mode) { return(IntUnsafeNativeMethods.CombineRgn(new HandleRef(this, HRegion), new HandleRef(region1, region1.HRegion), new HandleRef(region2, region2.HRegion), mode)); }
public static IntNativeMethods.RegionFlags CombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode) { Debug.Assert(hRgnDest.Wrapper != null && hRgnDest.Handle != IntPtr.Zero, "Destination region is invalid"); Debug.Assert(hRgnSrc1.Wrapper != null && hRgnSrc1.Handle != IntPtr.Zero, "Source region 1 is invalid"); Debug.Assert(hRgnSrc2.Wrapper != null && hRgnSrc2.Handle != IntPtr.Zero, "Source region 2 is invalid"); if (hRgnDest.Wrapper == null || hRgnSrc1.Wrapper == null || hRgnSrc2.Wrapper == null) { return(IntNativeMethods.RegionFlags.ERROR); } // Note: CombineRgn can return Error when no regions are combined, this is not an error condition. return(IntCombineRgn(hRgnDest, hRgnSrc1, hRgnSrc2, combineMode)); }
public static extern IntNativeMethods.RegionFlags IntCombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode);
public static IntNativeMethods.RegionFlags CombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode) { Debug.Assert(hRgnDest.Wrapper != null && hRgnDest.Handle != IntPtr.Zero, "Destination region is invalid"); Debug.Assert(hRgnSrc1.Wrapper != null && hRgnSrc1.Handle != IntPtr.Zero, "Source region 1 is invalid"); Debug.Assert(hRgnSrc2.Wrapper != null && hRgnSrc2.Handle != IntPtr.Zero, "Source region 2 is invalid"); if (hRgnDest.Wrapper == null || hRgnSrc1.Wrapper == null || hRgnSrc2.Wrapper == null) { return IntNativeMethods.RegionFlags.ERROR; } // Note: CombineRgn can return Error when no regions are combined, this is not an error condition. return IntCombineRgn(hRgnDest, hRgnSrc1, hRgnSrc2, combineMode); }
public static extern IntNativeMethods.RegionFlags IntCombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode);
public static extern int ExtSelectClipRgn( IntPtr hdc, IntPtr hrgn, RegionCombineMode fnMode );
public static extern int CombineRgn( IntPtr hrgnDest, IntPtr hrgnSrc1, IntPtr hrgnSrc2, RegionCombineMode fnCombineMode);
/// <devdoc> /// Combines region1 & region2 into this region. The regions cannot be null. /// The three regions need not be distinct. For example, the sourceRgn1 can equal this region. /// </devdoc> public IntNativeMethods.RegionFlags CombineRegion(WindowsRegion region1, WindowsRegion region2, RegionCombineMode mode) { return IntUnsafeNativeMethods.CombineRgn(new HandleRef(this, this.HRegion), new HandleRef(region1, region1.HRegion), new HandleRef(region2, region2.HRegion), mode); }
public static IntNativeMethods.RegionFlags CombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode) { if (((hRgnDest.Wrapper != null) && (hRgnSrc1.Wrapper != null)) && (hRgnSrc2.Wrapper != null)) { return(IntCombineRgn(hRgnDest, hRgnSrc1, hRgnSrc2, combineMode)); } return(IntNativeMethods.RegionFlags.ERROR); }
public static extern int ExtSelectClipRgn(System.IntPtr hdc, int hrgn, RegionCombineMode fnMode);
public static extern int CombineRgn(int hrgnDest, int hrgnSrc1, int hrgnSrc2, RegionCombineMode fnCombineMode);
public RegionFlags CombineRegion(WindowsRegion region1, WindowsRegion region2, RegionCombineMode mode) { return(CombineRgn(HRegion, region1.HRegion, region2.HRegion, mode)); }
extern public static RegionTypes CombineRgn(IntPtr hrgnDest, IntPtr hrgnSrc1, IntPtr hrgnSrc2, RegionCombineMode fnCombineMode);