DrawImage

Graphics.DrawImage method (1 of 24)

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

public void DrawImage(Image sourceImage, PointF point)
Parameter Type Description
sourceImage Image The image to draw with.
point PointF PointF structure that represents the upper-left corner of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (2 of 24)

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

public void DrawImage(Image sourceImage, float x, float y)
Parameter Type Description
sourceImage Image The image to draw with.
x Single The x-coordinate of the upper-left corner of the drawn image.
y Single The y-coordinate of the upper-left corner of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (3 of 24)

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

public void DrawImage(Image sourceImage, RectangleF rect)
Parameter Type Description
sourceImage Image The image to draw with.
rect RectangleF RectangleF structure that specifies the location and size of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (4 of 24)

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

public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit)
Parameter Type Description
sourceImage Image The image to draw with.
rectDestination Rectangle The destination rectangle.
graphicsUnit GraphicsUnit The graphics unit.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (5 of 24)

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

public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit)
Parameter Type Description
sourceImage Image The image to draw with.
rectDestination RectangleF The destination rectangle.
graphicsUnit GraphicsUnit The graphics unit.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (6 of 24)

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

public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit, 
    ImageAttributes imageAttributes)
Parameter Type Description
sourceImage Image The image to draw with.
rectDestination Rectangle The destination rectangle.
graphicsUnit GraphicsUnit The graphics unit.
imageAttributes ImageAttributes The image attributes.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (7 of 24)

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

public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit, 
    ImageAttributes imageAttributes)
Parameter Type Description
sourceImage Image The image to draw with.
rectDestination RectangleF The destination rectangle to draw in.
graphicsUnit GraphicsUnit The graphics unit.
imageAttributes ImageAttributes The image attributes.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (8 of 24)

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

public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination, 
    GraphicsUnit graphicsUnit)
Parameter Type Description
sourceImage Image The image to draw with.
rectSource Rectangle The rect source.
rectDestination Rectangle The rect destination.
graphicsUnit GraphicsUnit The graphics unit.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (9 of 24)

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

public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination, 
    GraphicsUnit graphicsUnit)
Parameter Type Description
sourceImage Image The image to draw with.
rectSource RectangleF The rect source.
rectDestination RectangleF The rect destination.
graphicsUnit GraphicsUnit The graphics unit.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (10 of 24)

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

public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination, 
    GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)
Parameter Type Description
sourceImage Image The image to draw with.
rectSource Rectangle The rect source.
rectDestination Rectangle The rect destination.
graphicsUnit GraphicsUnit The graphics unit.
imageAttributes ImageAttributes The image attributes.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (11 of 24)

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

public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination, 
    GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)
Parameter Type Description
sourceImage Image The image to draw with.
rectSource RectangleF The source rectangle.
rectDestination RectangleF The destination rectangle.
graphicsUnit GraphicsUnit The graphics unit to use.
imageAttributes ImageAttributes The image attributes to use.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (12 of 24)

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

public void DrawImage(Image image, Point[] destPoints)
Parameter Type Description
image Image The image to draw.
destPoints Point[] Array of three PointF structures that define a parallelogram.

See Also


Graphics.DrawImage method (13 of 24)

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)
Parameter Type Description
image Image The image to draw.
destPoints Point[] Array of three PointF structures that define a parallelogram.
srcRect Rectangle The source rectangle.

See Also


Graphics.DrawImage method (14 of 24)

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)
Parameter Type Description
image Image The image to draw.
destPoints Point[] Array of three PointF structures that define a parallelogram.
srcRect Rectangle The source rectangle.
srcUnit GraphicsUnit The units of measure.

See Also


Graphics.DrawImage method (15 of 24)

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 imageAttributes)
Parameter Type Description
image Image The image to draw.
destPoints Point[] Array of three PointF structures that define a parallelogram.
srcRect Rectangle The source rectangle.
srcUnit GraphicsUnit The units of measure.
imageAttributes ImageAttributes The image attributes.

See Also


Graphics.DrawImage method (16 of 24)

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

public void DrawImage(Image image, PointF[] destPoints)
Parameter Type Description
image Image The image to draw.
destPoints PointF[] Array of three PointF structures that define a parallelogram.

Exceptions

exception condition
ArgumentNullException image

See Also


Graphics.DrawImage method (17 of 24)

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)
Parameter Type Description
image Image The image to draw.
destPoints PointF[] Array of three PointF structures that define a parallelogram.
srcRect RectangleF The source rectangle.

See Also


Graphics.DrawImage method (18 of 24)

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)
Parameter Type Description
image Image The image to draw.
destPoints PointF[] Array of three PointF structures that define a parallelogram.
srcRect RectangleF The source rectangle.
srcUnit GraphicsUnit The units of measure.

See Also


Graphics.DrawImage method (19 of 24)

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 imageAttributes)
Parameter Type Description
image Image The image to draw.
destPoints PointF[] Array of three PointF structures that define a parallelogram.
srcRect RectangleF The source rectangle.
srcUnit GraphicsUnit The units of measure.
imageAttributes ImageAttributes The image attributes.

See Also


Graphics.DrawImage method (20 of 24)

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

public void DrawImage(Image sourceImage, float x, float y, float width, float height)
Parameter Type Description
sourceImage Image The image to draw with.
x Single The x-coordinate of the upper-left corner of the drawn image.
y Single The y-coordinate of the upper-left corner of the drawn image.
width Single Width of the drawn image.
height Single Height of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (21 of 24)

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

public void DrawImage(Image sourceImage, Point point)
Parameter Type Description
sourceImage Image The image to draw with.
point Point Point structure that represents the location of the upper-left corner of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (22 of 24)

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

public void DrawImage(Image sourceImage, int x, int y)
Parameter Type Description
sourceImage Image The image to draw with.
x Int32 The x-coordinate of the upper-left corner of the drawn image.
y Int32 The y-coordinate of the upper-left corner of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (23 of 24)

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

public void DrawImage(Image sourceImage, Rectangle rect)
Parameter Type Description
sourceImage Image The image to draw with.
rect Rectangle Rectangle structure that specifies the location and size of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also


Graphics.DrawImage method (24 of 24)

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

public void DrawImage(Image sourceImage, int x, int y, int width, int height)
Parameter Type Description
sourceImage Image The image to draw with.
x Int32 The x-coordinate of the upper-left corner of the drawn image.
y Int32 The y-coordinate of the upper-left corner of the drawn image.
width Int32 Width of the drawn image.
height Int32 Height of the drawn image.

Exceptions

exception condition
ArgumentNullException sourceImage is null.

See Also