Пример #1
0
 public Object clone()
 {
     Area ret = new Area();
     if ( region == null ) {
         ret.region = new System.Drawing.Region();
     } else {
         ret.region = (System.Drawing.Region)region.Clone();
     }
     return ret;
 }
Пример #2
0
 public void add( Area rhs )
 {
     if ( rhs == null ) {
         return;
     }
     if ( rhs.region == null ) {
         return;
     }
     if ( region == null ) {
         region = new System.Drawing.Region();
     }
     region.Union( rhs.region );
 }
Пример #3
0
 public void subtract( Area rhs )
 {
     if ( rhs == null ) {
         return;
     }
     if ( rhs.region == null ) {
         return;
     }
     if ( region == null ) {
         region = new System.Drawing.Region();
     }
     region.Exclude( rhs.region );
 }
Пример #4
0
 public Shape getClip() {
     Area ret = new Area();
     ret.region = nativeGraphics.Clip;
     return ret;
 }