Method DrawRectangleAlignedInside
DrawRectangleAlignedInside(Graphics, Pen, Rectangle)
Draws a rectangle aligned accordingly to the pen width.
public static void DrawRectangleAlignedInside(this Graphics graphics, Pen pen, Rectangle rect)
Parameters
graphicsGraphicsA System.Drawing.Graphics to be drawn on.
penPenA System.Drawing.Pen that determines the color, width, and style of the rectangle.
rectRectangleA System.Drawing.Rectangle structure that represents the rectangle to draw.
DrawRectangleAlignedInside(Graphics, Pen, RectD)
public static void DrawRectangleAlignedInside(this Graphics graphics, Pen pen, RectD rect)