Table of Contents

Method DrawRectangleAlignedInside

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

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 Graphics

A System.Drawing.Graphics to be drawn on.

pen Pen

A System.Drawing.Pen that determines the color, width, and style of the rectangle.

rect Rectangle

A System.Drawing.Rectangle structure that represents the rectangle to draw.