예제 #1
0
 public void copyImage()
 {
     try
     {
         Bitmap _b = c_ImgGen.createPng(fs, fs.Limages, new object[] { fs.getDrawnPoints(), null });
         Clipboard.SetImage(_b);
     }
     catch
     {
     }
 }
예제 #2
0
        public void generateImage()
        {
            Bitmap _b = c_ImgGen.createPng(fs, cutouts, new object[] { fs.getDrawnPoints(), null }, trender);

            pb_Pic.Image = _b;
            List <uc_CutoutHolder> cut = new List <uc_CutoutHolder>();

            foreach (Control c in fs.Controls)
            {
                if (c != null && c is uc_CutoutHolder)
                {
                    cut.Add(c as uc_CutoutHolder);
                }
            }

            lbl_Info.Text = "Size: " + _b.Width + "x" + _b.Height + "px | # of layers: " + cut.Count;
            //_b.Dispose();
        }
예제 #3
0
 public void refreshImage(f_Screen fs)
 {
     pb_PreviewPicture.Image = c_ImgGen.createPng(fs, fs.Limages, new object[] { fs.getDrawnPoints(), null });
     GC.Collect(1);
 }