Esempio n. 1
0
        public void DrawPatternPolygon3Core()
        {
            using (Image <Rgba32> image = new Image <Rgba32>(800, 800))
            {
                image.Fill(CoreBrushes.BackwardDiagonal(Rgba32.HotPink));

                using (MemoryStream ms = new MemoryStream())
                {
                    image.SaveAsBmp(ms);
                }
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Create as brush that will paint a Min Hatch Pattern with
 /// in the specified foreground and background colors
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <param name="backColor">Color of the background.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Min(Rgba32 foreColor, Rgba32 backColor)
 => new PatternBrush(Brushes <Rgba32> .Min(foreColor, backColor));
Esempio n. 3
0
 /// <summary>
 /// Create as brush that will paint a Horizontal Hatch Pattern with
 /// in the specified foreground and background colors
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <param name="backColor">Color of the background.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Horizontal(Rgba32 foreColor, Rgba32 backColor)
 => new PatternBrush(Brushes <Rgba32> .Horizontal(foreColor, backColor));
Esempio n. 4
0
 /// <summary>
 /// Create as brush that will paint a Min Hatch Pattern with
 /// in the specified foreground color and a transparent background
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Min(Rgba32 foreColor)
 => new PatternBrush(Brushes <Rgba32> .Min(foreColor, Rgba32.Transparent));
Esempio n. 5
0
 /// <summary>
 /// Create as brush that will paint a Percent20 Hatch Pattern with
 /// in the specified foreground and background colors
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <param name="backColor">Color of the background.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Percent20(Rgba32 foreColor, Rgba32 backColor)
 => new PatternBrush(Brushes <Rgba32> .Percent20(foreColor, backColor));
Esempio n. 6
0
 /// <summary>
 /// Create as brush that will paint a Horizontal Hatch Pattern with
 /// in the specified foreground color and a transparent background
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Horizontal(Rgba32 foreColor)
 => new PatternBrush(Brushes <Rgba32> .Horizontal(foreColor, Rgba32.Transparent));
Esempio n. 7
0
 /// <summary>
 /// Create as brush that will paint a Percent20 Hatch Pattern with
 /// in the specified foreground color and a transparent background
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Percent20(Rgba32 foreColor)
 => new PatternBrush(Brushes <Rgba32> .Percent20(foreColor, Rgba32.Transparent));
Esempio n. 8
0
 /// <summary>
 /// Create as brush that will paint a Backward Diagonal Hatch Pattern with
 /// in the specified foreground and background colors
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <param name="backColor">Color of the background.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush BackwardDiagonal(Rgba32 foreColor, Rgba32 backColor)
 => new PatternBrush(Brushes <Rgba32> .BackwardDiagonal(foreColor, backColor));
Esempio n. 9
0
 /// <summary>
 /// Create as brush that will paint a Backward Diagonal Hatch Pattern with
 /// in the specified foreground color and a transparent background
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush BackwardDiagonal(Rgba32 foreColor)
 => new PatternBrush(Brushes <Rgba32> .BackwardDiagonal(foreColor, Rgba32.Transparent));
Esempio n. 10
0
 /// <summary>
 /// Create as brush that will paint a Vertical Hatch Pattern with
 /// in the specified foreground and background colors
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <param name="backColor">Color of the background.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Vertical(Rgba32 foreColor, Rgba32 backColor)
 => new PatternBrush(Brushes <Rgba32> .Vertical(foreColor, backColor));
Esempio n. 11
0
 /// <summary>
 /// Create as brush that will paint a Vertical Hatch Pattern with
 /// in the specified foreground color and a transparent background
 /// </summary>
 /// <param name="foreColor">Color of the foreground.</param>
 /// <returns>A Brush</returns>
 public static PatternBrush Vertical(Rgba32 foreColor)
 => new PatternBrush(Brushes <Rgba32> .Vertical(foreColor, Rgba32.Transparent));