public void AddToBmpList(PictureBox a) { BitmapWrap bmp = (BitmapWrap)Bmp.Clone(); bitmapList.Add(bmp); m = bitmapList.Count - 1; Bmp = bitmapList[m]; }
public object Clone() { BitmapWrap bitmapWrap = new BitmapWrap(); bitmapWrap.Bmp = (Bitmap)Bmp.Clone(); bitmapWrap.Width = Bmp.Width; bitmapWrap.Height = Bmp.Height; bitmapWrap.isLocked = false; return(bitmapWrap); }
public void SaveToCache() { Cache = (BitmapWrap)Bmp.Clone(); //Graphics g = Graphics.FromImage(Cache.Bmp); //g.DrawImage(Bmp.Bmp, new System.Drawing.Rectangle(0, 0, Width, Height)); }
public void SaveToCache() { Cache = (Bitmap)Bmp.Clone(); }