Example #1
0
        public void FillPolygon(PointF[] points, FillMode fillMode)
        {
            if (Brush == null)
            {
                return;
            }
            var frame = Target.Frame();

            if (frame == null)
            {
                return;
            }

            var color = Brush.Color.ToArgb();

            SdfDraw.FillPolygon(frame, points, color, fillMode);
        }
Example #2
0
        public void FillGlyphs(IEnumerable <RenderableGlyph> positionedGlyphs, Brush brush)
        {
            if (Brush == null)
            {
                return;
            }
            var frame = Target.Frame();

            if (frame == null)
            {
                return;
            }
            var color = brush.GetBrush(Toolkit).Color.ToArgb();

            foreach (var glyph in positionedGlyphs)
            {
                SdfDraw.FillPolygon(frame, glyph.ToArray(), color, FillMode.Winding);
            }
        }