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; } }
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(); } }
private void RdoPixel_Click(object sender, EventArgs e) { pSize = Convert.ToInt32(((RadioButton)sender).Text); imgPvw = PixelFormator.PixelIcon(imgIco, pSize, 512); picPvw.Refresh(); }