Table of Contents

Method Draw

Namespace
Alternet.Common
Assembly
Alternet.Common.Winforms.v11.dll

Draw(Graphics, int, int, int)

Draws an image on the specified graphic surface at the location specified by a coordinate pair.

public virtual void Draw(Graphics g, int x, int y, int index)

Parameters

g Graphics

The Graphics object to draw on.

x int

X-coordinate of the upper-left corner of the image to be drawn.

y int

Y-coordinate of the upper-left corner of the image to be drawn.

index int

Index of image to draw within image list.

Draw(Graphics, Rectangle, int)

Draws an image on the specified graphic surface within the specified rectangle.

public virtual void Draw(Graphics g, Rectangle rect, int index)

Parameters

g Graphics

The Graphics object to draw on.

rect Rectangle

The rectangle specifying the location and size of the image.

index int

Index of image to draw within image list.