示例#1
0
 public RegionCombineType Combine(GDIRegion aRegion, GDIRegion bRegion, RegionCombineStyles combineStyle)
 {
     int retValue = GDI32.CombineRgn(DangerousGetHandle(), aRegion.DangerousGetHandle(), bRegion.DangerousGetHandle(), (int)combineStyle);
     
     RegionCombineType result = (RegionCombineType)retValue;
     return result;
 }
示例#2
0
 public virtual void SetClip(GDIRegion clipRegion)
 {
     GDI32.SelectClipRgn(DeviceContext, clipRegion.DangerousGetHandle());
 }
示例#3
0
        public bool Equals(GDIRegion aRegion)
        {
            bool isEqual = GDI32.EqualRgn(DangerousGetHandle(), aRegion.DangerousGetHandle());

            return isEqual;
        }
示例#4
0
        public GDIRegion Intersect(GDIRegion aRegion)
        {
            RegionCombineType retValue = (RegionCombineType)GDI32.CombineRgn(DangerousGetHandle(), DangerousGetHandle(), aRegion.DangerousGetHandle(), (int)RegionCombineStyles.AND);

            return this;
        }
示例#5
0
        public GDIRegion Subtract(GDIRegion aRegion)
        {
            RegionCombineType retValue = (RegionCombineType)GDI32.CombineRgn(DangerousGetHandle(), DangerousGetHandle(), aRegion.DangerousGetHandle(), (int)RegionCombineStyles.Diff);

            return this;
        }