Method DrawImage
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
ImageListImage list that contains image to draw.
index
intIndex of image to draw within image list.
rect
RectangleRectangle 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
ImageListImage list that contains image to draw.
index
intIndex of image to draw within image list.
rect
RectangleRectangle that bounds the drawing area for the image.
srcX
intX-coordinate of the upper-left corner of the portion of the source image to be drawn.
srcY
intY-coordinate of the upper-left corner of the portion of the source image to be drawn.
srcWidth
intWidth of the portion of the source image to be drawn.
srcHeight
intHeight of the portion of the source image to be drawn.
srcUnit
GraphicsUnitSpecifies the unit of measure for the image.
imageAttr
ImageAttributesSpecifies 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)