Table of Contents

Method DrawAlignedImage

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

DrawAlignedImage(Graphics, Image, Rectangle, ContentAlignment)

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

public static void DrawAlignedImage(this Graphics graphics, Image image, Rectangle bounds, ContentAlignment alignment = ContentAlignment.MiddleCenter)

Parameters

graphics Graphics

Surface to draw image on.

image Image

System.Drawing.Image to draw.

bounds Rectangle

System.Drawing.Rectangle structure that specifies the location of the drawn image.

alignment ContentAlignment

Image alignment.