Table of Contents

Class GraphicsExtensions

Namespace
Alternet.Common
Assembly
Alternet.Common.Winforms.v10.dll

Contains extended functionality for drawing surface.

public static class GraphicsExtensions
Inheritance
GraphicsExtensions

Methods

DrawAlignedImage(Graphics, Image, RectD, ContentAlignment)
DrawAlignedImage(Graphics, Image, Rectangle, ContentAlignment)

Draws the specified System.Drawing.Image, using its original physical size, with specified alignment.

DrawRectangleAlignedInside(Graphics, Pen, RectD)
DrawRectangleAlignedInside(Graphics, Pen, Rectangle)

Draws a rectangle aligned accordingly to the pen width.