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
imagesImageListImage list that contains image to draw.
indexintIndex of image to draw within image list.
rectRectangleRectangle that bounds the drawing area for the image.
DrawImage(AlphaImageList, int, Rectangle)
Draws specified image in the specified rectangular area.
public virtual void DrawImage(AlphaImageList images, int index, Rectangle rect)
Parameters
imagesAlphaImageListImage list that contains image to draw.
indexintIndex of image to draw within image list.
rectRectangleRectangle 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
imagesImageListImage list that contains image to draw.
indexintIndex of image to draw within image list.
rectRectangleRectangle that bounds the drawing area for the image.
srcXintX-coordinate of the upper-left corner of the portion of the source image to be drawn.
srcYintY-coordinate of the upper-left corner of the portion of the source image to be drawn.
srcWidthintWidth of the portion of the source image to be drawn.
srcHeightintHeight of the portion of the source image to be drawn.
srcUnitGraphicsUnitSpecifies the unit of measure for the image.
imageAttrImageAttributesSpecifies the color and size attributes of the image to be drawn.