コード例 #1
0
        public void FillPolygon_Pattern <TPixel>(TestImageProvider <TPixel> provider)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            PointF[] simplePath =
            {
                new Vector2(10, 10), new Vector2(200, 150), new Vector2(50, 300)
            };
            Color color = Color.Yellow;

            PatternBrush brush = Brushes.Horizontal(color);

            provider.RunValidatingProcessorTest(
                c => c.FillPolygon(brush, simplePath),
                appendSourceFileOrDescription: false);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatternBrush"/> class.
 /// </summary>
 /// <param name="brush">The brush.</param>
 internal PatternBrush(PatternBrush <Color, uint> brush)
     : base(brush)
 {
 }