コード例 #1
0
ファイル: Form1.cs プロジェクト: WolfyD/screensnip_office
 public void copyImage()
 {
     try
     {
         Bitmap _b = c_ImgGen.createPng(fs, fs.Limages, new object[] { fs.getDrawnPoints(), null });
         Clipboard.SetImage(_b);
     }
     catch
     {
     }
 }
コード例 #2
0
ファイル: f_Preview.cs プロジェクト: WolfyD/screensnip_office
        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);
 }