Table of Contents

Method DrawImage

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

DrawImage(Image, Rectangle)

Draws image in the specified rectangular area.

public virtual void DrawImage(Image image, Rectangle rect)

Parameters

image Image

Specifies image to draw.

rect Rectangle

Destination rectangle

DrawImage(ImageList, int, Rectangle)

Draws specified image in the specified rectangular area.

public virtual 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)

Draws specified image in the specified rectangular area.

public virtual 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.