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
canvasGraphicsGraphics where drawing is performed.
rectRectDRectD where drawing is performed.
innerColorColorInner border color.
outerColorColorOuter border color.
Returns
- RectD
Value of the
rectparameter deflated by number of the painted borders (0, 1 or 2).
Remarks
If border color is Empty it is not painted.