public void CreateNewImage(string filename) { Bitmap bitmap = Bitmap.FromFile(filename) as Bitmap; My_Image img = new My_Image(this, bitmap); UnselectAll(); SelectedFigure = img; SelectedFigures.Add(img); picture.FigureList.Add(img); Lock = true; }
public My_Image(My_Image item) : base(item) { this.bitmap = item.bitmap; draw = Draw; }