Beispiel #1
0
        public void AddToBmpList(PictureBox a)
        {
            BitmapWrap bmp = (BitmapWrap)Bmp.Clone();

            bitmapList.Add(bmp);
            m   = bitmapList.Count - 1;
            Bmp = bitmapList[m];
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 public void SaveToCache()
 {
     Cache = (Bitmap)Bmp.Clone();
 }