Contains all the complex paint code to paint different style borders.
        internal void PaintBorders(CssBox box, RectangleF rect)
        {
            Color     topColor    = box.BorderTopColor;
            Color     leftColor   = box.BorderLeftColor;
            Color     rightColor  = box.BorderRightColor;
            Color     bottomColor = box.BorderBottomColor;
            DrawBoard g           = this.InnerDrawBoard;

            // var b1 = RenderUtils.GetSolidBrush(topColor);
            BorderPaintHelper.DrawBorder(CssSide.Top, _borderPoints, g, box, topColor, rect);
            // var b2 = RenderUtils.GetSolidBrush(leftColor);
            BorderPaintHelper.DrawBorder(CssSide.Left, _borderPoints, g, box, leftColor, rect);
            // var b3 = RenderUtils.GetSolidBrush(rightColor);
            BorderPaintHelper.DrawBorder(CssSide.Right, _borderPoints, g, box, rightColor, rect);
            //var b4 = RenderUtils.GetSolidBrush(bottomColor);
            BorderPaintHelper.DrawBorder(CssSide.Bottom, _borderPoints, g, box, bottomColor, rect);
        }
 internal void PaintBorder(CssBox box, CssSide border, Color solidColor, RectangleF rect)
 {
     BorderPaintHelper.DrawBorder(solidColor, border, _borderPoints, _drawBoard, box, rect);
 }
Exemple #3
0
 internal void PaintBorder(CssBox box, CssSide border, Color solidColor, RectangleF rect)
 {
     PointF[] borderPoints = new PointF[4];
     BorderPaintHelper.DrawBorder(solidColor, border, borderPoints, this.canvas, box, rect);
 }