Table of Contents

Method FromImage

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

FromImage(Image)

Creates a new Graphics from the specified Image.

public static Graphics FromImage(Image image)

Parameters

image Image

Image from which to create the new Graphics.

Returns

Graphics

A new Graphics for the specified Image.

Remarks

Use this method to draw on the specified image. You should always call the Dispose() method to release the Graphics and related resources created by the FromImage(Image) method.

Exceptions

ArgumentNullException

image is null.