Example #1
0
 private void PixelPainter_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         CurrPixelTool.Move(e.Location);
     }
 }
Example #2
0
 private void PixelPainter_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left &&  CurrPixelTool.End(e.Location))
     {
         if (!IsModified && CurrPixelTool.WillModify)
         {
             IsModified = true;
         }
     }
 }
Example #3
0
 private void FillToolButton_Click(object sender, EventArgs e)
 {
     if (CurrPixelTool.GetType() != typeof(PixelFill))
     {
         var tool = PixelToolContainer.Instance.GetPixelTool("PixelFill");
         if (tool != null)
         {
             CurrPixelTool = tool;
         }
     }
 }