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
graphics
GraphicsA System.Drawing.Graphics to be drawn on.
pen
PenA System.Drawing.Pen that determines the color, width, and style of the rectangle.
rect
RectangleA 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)