Table of Contents

Method DrawImage

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

DrawImage(ImageList, int, Rectangle)

When implemented by a class, draws specified image in the specified rectangular area.

void DrawImage(ImageList images, int index, Rectangle rect)

Parameters

images ImageList

Image list that contains image to draw.

index int

Index of image to draw within image list.

rect Rectangle

Rectangle that bounds the drawing area for the image.

DrawImage(ImageList, int, Rectangle, int, int, int, int, GraphicsUnit, ImageAttributes)

When implemented by a class, draws specified image in the specified rectangular area.

void DrawImage(ImageList images, int index, Rectangle rect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)

Parameters

images ImageList

Image list that contains image to draw.

index int

Index of image to draw within image list.

rect Rectangle

Rectangle that bounds the drawing area for the image.

srcX int

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

srcY int

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

srcWidth int

Width of the portion of the source image to be drawn.

srcHeight int

Height of the portion of the source image to be drawn.

srcUnit GraphicsUnit

Specifies the unit of measure for the image.

imageAttr ImageAttributes

Specifies the color and size attributes of the image to be drawn.

DrawImage(Image, Rectangle)

When implemented by a class, draws image in the specified rectangular area.

void DrawImage(Image image, Rectangle rect)

Parameters

image Image

Specifies image to draw.

rect Rectangle

Destination rectangle