Graphics.DrawImage

DrawImage(Image, int, int)

Draws the specified image, using its original physical size, at the location specified by a coordinate pair.

public void DrawImage(Image image, int x, int y)
ParameterTypeDescription
imageImageImage to draw.
xInt32The x-coordinate of the upper-left corner of the drawn image.
yInt32The y-coordinate of the upper-left corner of the drawn image.

See Also


DrawImage(Image, float, float)

Draws the specified Image, using its original physical size, at the specified location.

public void DrawImage(Image image, float x, float y)
ParameterTypeDescription
imageImageImage to draw.
xSingleThe x-coordinate of the upper-left corner of the drawn image.
ySingleThe y-coordinate of the upper-left corner of the drawn image.

See Also


DrawImage(Image, Point)

Draws the specified Image, using its original physical size, at the specified location.

public void DrawImage(Image image, Point point)
ParameterTypeDescription
imageImageImage to draw.
pointPointPoint structure that represents the location of the upper-left corner of the drawn image.

See Also


DrawImage(Image, Point[])

Draws the specified Е:Image at the specified location and with the specified shape and size.

public void DrawImage(Image image, Point[] destPoints)
ParameterTypeDescription
imageImageImage to draw.
destPointsPoint[]Array of three Point structures that define a parallelogram.

See Also


DrawImage(Image, PointF)

Draws the specified Image, using its original physical size, at the specified location.

public void DrawImage(Image image, PointF point)
ParameterTypeDescription
imageImageImage to draw.
pointPointFPointF structure that represents the upper-left corner of the drawn image.

See Also


DrawImage(Image, PointF[])

Draws the specified Image at the specified location and with the specified shape and size.

public void DrawImage(Image image, PointF[] destPoints)
ParameterTypeDescription
imageImageImage to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.

See Also


DrawImage(Image, int, int, int, int)

Draws the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, int x, int y, int width, int height)
ParameterTypeDescription
imageImageImage to draw.
xInt32The x-coordinate of the upper-left corner of the drawn image.
yInt32The y-coordinate of the upper-left corner of the drawn image.
widthInt32Width of the drawn image.
heightInt32Height of the drawn image.

See Also


DrawImage(Image, Rectangle)

Draws the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Rectangle rect)
ParameterTypeDescription
imageImageThe Image to draw.
rectRectangleThe rectangle that specifies the location and size of the drawn image.

See Also


DrawImage(Image, RectangleF)

Draws the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, RectangleF rect)
ParameterTypeDescription
imageImageThe Image to draw.
rectRectangleFThe rectangle that specifies the location and size of the drawn image.

See Also


DrawImage(Image, float, float, float, float)

Draws the specified Image, using its original physical size, at the specified location and with the specified size.

public void DrawImage(Image image, float x, float y, float width, float height)
ParameterTypeDescription
imageImageImage to draw.
xSingleThe x-coordinate of the upper-left corner of the drawn image.
ySingleThe y-coordinate of the upper-left corner of the drawn image.
widthSingleThe width of the drawn image.
heightSingleThe height of the drawn image.

See Also


DrawImage(Image, int, int, Rectangle, GraphicsUnit)

Draws a portion of an image at a specified location.

public void DrawImage(Image image, int x, int y, Rectangle srcRect, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
xInt32The x-coordinate of the upper-left corner of the drawn image.
yInt32The y-coordinate of the upper-left corner of the drawn image.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

See Also


DrawImage(Image, float, float, RectangleF, GraphicsUnit)

Draws a portion of an image at a specified location.

public void DrawImage(Image image, float x, float y, RectangleF srcRect, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
xSingleThe x-coordinate of the upper-left corner of the drawn image.
ySingleThe y-coordinate of the upper-left corner of the drawn image.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

See Also


DrawImage(Image, PointF[], RectangleF, GraphicsUnit)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

See Also


DrawImage(Image, Point[], Rectangle, GraphicsUnit)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
destPointsPoint[]Array of three Point structures that define a parallelogram.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

See Also


DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, 
    ImageAttributes imageAttr)
ParameterTypeDescription
imageImageImage to draw.
destPointsPoint[]Array of three Point structures that define a parallelogram.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.
imageAttrImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

See Also


DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, 
    ImageAttributes imageAttr)
ParameterTypeDescription
imageImageImage to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.
imageAttrImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

See Also


DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcRectRectangleRectangle structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

See Also


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

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, 
    int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)
ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXInt32The x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYInt32The y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthInt32Width of the portion of the source image to draw.
srcHeightInt32Height of the portion of the source image to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.
imageAttrImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

See Also


DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
destRectRectangleFRectangleF structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcRectRectangleFRectangleF structure that specifies the portion of the image object to draw.
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

See Also


DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, 
    int srcHeight, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXInt32The x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYInt32The y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthInt32Width of the portion of the source image to draw.
srcHeightInt32Height of the portion of the source image to draw
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.

See Also


DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, 
    float srcHeight, GraphicsUnit srcUnit)
ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXSingleThe x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYSingleThe y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthSingleWidth of the portion of the source image to draw.
srcHeightSingleHeight of the portion of the source image to draw
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.

See Also


DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit, ImageAttributes)

Draws the specified portion of the specified Image at the specified location and with the specified size.

public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, 
    float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs)
ParameterTypeDescription
imageImageImage to draw.
destRectRectangleRectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcXSingleThe x-coordinate of the upper-left corner of the portion of the source image to draw.
srcYSingleThe y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidthSingleWidth of the portion of the source image to draw.
srcHeightSingleHeight of the portion of the source image to draw
srcUnitGraphicsUnitMember of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.
imageAttrsImageAttributesImageAttributes that specifies recoloring and gamma information for the image object.

See Also