예제 #1
0
        private void BtnOpenIcon_Click(object sender, EventArgs e)
        {
            var dlg = new IconDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                imgIco = ImageFormator.GetIconImage(dlg.FileName, dlg.IconIndex);
                imgPvw = PixelFormator.PixelIcon(imgIco, 1, 512);
                picPvw.Refresh();
                chkPixel.Enabled   = true;
                btnSaveIco.Enabled = true;
            }
        }
예제 #2
0
 private void ChkPixel_Click(object sender, EventArgs e)
 {
     if (chkPixel.Checked == true)
     {
         imgPvw           = PixelFormator.PixelIcon(imgIco, pSize, 512);
         grpPixel.Enabled = true;
         picPvw.Refresh();
     }
     else
     {
         imgPvw           = PixelFormator.PixelIcon(imgIco, 1, 512);
         grpPixel.Enabled = false;
         picPvw.Refresh();
     }
 }
예제 #3
0
 private void RdoPixel_Click(object sender, EventArgs e)
 {
     pSize  = Convert.ToInt32(((RadioButton)sender).Text);
     imgPvw = PixelFormator.PixelIcon(imgIco, pSize, 512);
     picPvw.Refresh();
 }