System.Drawing.Region.Xor C# (CSharp) Method

Xor() public method

Updates this Region to the union minus the intersection of itself with the specified RectangleF structure.
public Xor ( RectangleF rect ) : void
rect RectangleF Rect.
return void
        public void Xor(RectangleF rect)
        {
            regionList.Add(new RegionEntry(RegionType.Rectangle, rect, RectangleToPath(rect), RegionClipType.Xor));
            calculateRegionPath (ClipType.ctXor);
        }

Same methods

Region::Xor ( GraphicsPath path ) : void
Region::Xor ( Rectangle rect ) : void
Region::Xor ( Region region ) : void

Usage Example

Beispiel #1
0
		public void ctor_GraphicsPath () {
			GraphicsPath path = new GraphicsPath ();
			path.AddRectangle (rect);
			Region r1 = new Region (path);
			r1.Xor (r);
			Assert.IsTrue (r1.IsEmpty (t.Graphics));
		}
All Usage Examples Of System.Drawing.Region::Xor