예제 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     frmMain form = new frmMain();
     Application.Run(form);
     //Application.Run(new frmMain());
 }
예제 #2
0
 public void Init(frmMain pa, Animation ani,Color alpha,bool enable)
 {
     animation = ani;
     parrent = pa;
     picFrame.Image = animation.GetCurrentFrame();
     numA.Value = alpha.A;
     numR.Value = alpha.R;
     numG.Value = alpha.G;
     numB.Value = alpha.B;
     chkEnableAlphaCrop.Checked = enable;
 }
예제 #3
0
 public bool Init(frmMain p, Point size)
 {
     parrent = p;
     width = size.X;
     height = size.Y;
     cboPixelPercent1.SelectedIndex = 0;
     cboPixelPercent2.SelectedIndex = 0;
     numWidth.Maximum = width*5;
     numHeight.Maximum = height*5;
     numWidth.Value = width;
     numHeight.Value = height;
     return true;
 }