コード例 #1
0
ファイル: Brushes.cs プロジェクト: antonfirsov/ImageSharp
 /// <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(Color foreColor, Color backColor)
 => new PatternBrush(Brushes <Color, uint> .Min(foreColor, backColor));
コード例 #2
0
ファイル: Brushes.cs プロジェクト: antonfirsov/ImageSharp
 /// <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(Color foreColor)
 => new PatternBrush(Brushes <Color, uint> .Min(foreColor, Color.Transparent));