public Surf.Bitmap Copy() { Surf.Bitmap B = new Surf.Bitmap(this.Length); for (int i = 0; i < this.Length; i++) { B.Set(i, this.Get(i)); } return(B); }
protected override object EvaluateBITMAP(string value) { value = value.Substring(1, value.Length - 2); Surf.Bitmap bitArray = new Surf.Bitmap(value.Length); for (int i = 0; i < value.Length; i++) { bitArray.Set(i, (value[i] == '1')); } return(bitArray); }
public Surf.Bitmap Or(Surf.Bitmap bitmap) { if (this.Length != bitmap.Length) { throw new System.Exception("Bitmaps are not the same size."); } Surf.Bitmap C = new Surf.Bitmap(this.Length); for (int i = 0; i < this.Length; i++) { C.Set(i, this.Get(i) || bitmap.Get(i)); } return(C); }