using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VisionCommon { public class CustomizeMaskParam : ICloneCopy { public bool Enabled { get; set; } = false; public string MaskingImageName { get; set; } = ""; public int MaskingImageSize { get; set; } = 0; public CustomizeMaskParam Clone() { return ((ICloneable)this).Clone() as CustomizeMaskParam; } public void CopyTo(CustomizeMaskParam target) { target.Enabled = this.Enabled; target.MaskingImageName = this.MaskingImageName; target.MaskingImageSize = this.MaskingImageSize; } object ICloneable.Clone() { var cloneObj = new CustomizeMaskParam(); CopyTo(cloneObj); return cloneObj; } } }