예제 #1
0
파일: PixelPainter.cs 프로젝트: sgww/cozy
 public void UpdateDrawable()
 {
     if (IsReady)
     {
         InnerPicBox.Refresh();
     }
 }
예제 #2
0
파일: PixelPainter.cs 프로젝트: sgww/cozy
 public void RefreshPixel()
 {
     if (IsReady)
     {
         Image = BitmapGenerate.Draw(SourceImage);
         InnerPicBox.Invalidate();
     }
 }
예제 #3
0
파일: PixelPainter.cs 프로젝트: sgww/cozy
 public void FakeDrawPixel(Point p, Color c)
 {
     if (IsReady)
     {
         using (var g = InnerPicBox.CreateGraphics())
         {
             DrawPixel(p, c, g, false);
         }
     }
 }
예제 #4
0
파일: PixelPainter.cs 프로젝트: sgww/cozy
 public void RefreshGrid()
 {
     if (IsReady && SourceImage.ShowGrid)
     {
         using (var g = Graphics.FromImage(Image))
         {
             BitmapGenerate.DrawGrid(SourceImage, g);
         }
         InnerPicBox.Invalidate();
     }
 }