Exemple #1
0
        public static DesktopBrush Solid(API.Color color)
        {
            DesktopBrush brush = new DesktopBrush(new SolidBrush(color.Convert()));

            brush.Type  = BrushType.Solid;
            brush.Color = color;
            return(brush);
        }
 public void SetPixels(API.Color color, List <API.Point> points)
 {
     using (FastBitmap bmp = new FastBitmap(_bitmap, ImageLockMode.WriteOnly))
     {
         foreach (var point in points)
         {
             bmp.SetPixel(point.X, point.Y, color.Convert());
         }
     }
 }
 public void MakeTransparent(API.Color color)
 {
     _bitmap.MakeTransparent(color.Convert());
 }
 public void SetPixel(API.Color color, int x, int y)
 {
     _bitmap.SetPixel(x, y, color.Convert());
 }