Exemplo n.º 1
0
        private void btExportPng_Click(object sender, EventArgs e)
        {
            if (sfExportDialog.ShowDialog() == DialogResult.OK)
            {
                var fname = sfExportDialog.FileName;
                var img   = renderFrame(activeFrame, false);

                if (!showBack)
                {
                    img = UtilsGDI.CropImage(img, UtilsGDI.FindBorderRect(img));
                }

                img.Save(fname);
            }
        }