コード例 #1
0
 public virtual IDrawObject Clone()
 {
     try
     {
         ImgeTool imgeTool = new ImgeTool();
         imgeTool.Copy(this);
         return(imgeTool);
     }
     catch (Exception ex)
     { throw ex; }
 }
コード例 #2
0
 public virtual void Copy(ImgeTool acopy)
 {
     try
     {
         base.Copy(acopy);
         location = acopy.location;
         img      = acopy.img;
         imageStr = acopy.imageStr;
         width    = acopy.width;
         height   = acopy.height;
         Selected = acopy.Selected;
     }
     catch (Exception ex)
     { throw ex; }
 }