internal override void DrawRectangle(Color color, float size, RPLFormat.BorderStyles style, RectangleF rectangle) { Pen pen = new Pen(color, size); pen.DashStyle = RenderingItem.TranslateBorderStyle(style); Graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); }
internal override void DrawLine(Color color, float size, RPLFormat.BorderStyles style, float x1, float y1, float x2, float y2) { Pen pen = new Pen(color, size); pen.DashStyle = RenderingItem.TranslateBorderStyle(style); Graphics.DrawLine(pen, x1, y1, x2, y2); }