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;
 }
예제 #2
0
 /// <summary>
 /// Combines region1 &amp; 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));
 }
예제 #3
0
        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));
        }
예제 #4
0
 public static extern IntNativeMethods.RegionFlags IntCombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode);
예제 #5
0
        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);
        }
예제 #6
0
 public static extern IntNativeMethods.RegionFlags IntCombineRgn(HandleRef hRgnDest, HandleRef hRgnSrc1, HandleRef hRgnSrc2, RegionCombineMode combineMode);
예제 #7
0
	public static extern int ExtSelectClipRgn( IntPtr hdc, IntPtr hrgn, RegionCombineMode fnMode );
예제 #8
0
	public static extern int CombineRgn( IntPtr hrgnDest, IntPtr hrgnSrc1, IntPtr hrgnSrc2, RegionCombineMode fnCombineMode);
예제 #9
0
 /// <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);
 }
예제 #10
0
 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);
 }
예제 #11
0
파일: Gdi32.cs 프로젝트: ywscr/CSharpWriter
 public static extern int ExtSelectClipRgn(System.IntPtr hdc, int hrgn, RegionCombineMode fnMode);
예제 #12
0
파일: Gdi32.cs 프로젝트: ywscr/CSharpWriter
 public static extern int CombineRgn(int hrgnDest, int hrgnSrc1, int hrgnSrc2, RegionCombineMode fnCombineMode);
예제 #13
0
 public RegionFlags CombineRegion(WindowsRegion region1, WindowsRegion region2, RegionCombineMode mode)
 {
     return(CombineRgn(HRegion, region1.HRegion, region2.HRegion, mode));
 }
예제 #14
0
 extern public static RegionTypes CombineRgn(IntPtr hrgnDest, IntPtr hrgnSrc1, IntPtr hrgnSrc2, RegionCombineMode fnCombineMode);