Method DrawImage
DrawImage(Image, Rectangle)
Draws image in the specified rectangular area.
public virtual void DrawImage(Image image, Rectangle rect)
Parameters
DrawImage(ImageList, int, Rectangle)
Draws specified image in the specified rectangular area.
public virtual 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)
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
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.