Method DrawDoubleBorder
DrawDoubleBorder(Graphics, RectD, Color, Color)
Draws inner and outer border with the specified colors.
public static RectD DrawDoubleBorder(this Graphics canvas, RectD rect, Color innerColor, Color outerColor)
Parameters
canvas
GraphicsGraphics where drawing is performed.
rect
RectDRectD where drawing is performed.
innerColor
ColorInner border color.
outerColor
ColorOuter border color.
Returns
- RectD
Value of the
rect
parameter deflated by number of the painted borders (0, 1 or 2).
Remarks
If border color is Empty it is not painted.