Graphics.DrawImage

DrawImage(Image, PointF)

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

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

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, float, float)

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

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

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, RectangleF)

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

public void DrawImage(Image sourceImage, RectangleF rect)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectRectangleFRectangleF structure that specifies the location and size of the drawn image.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, Rectangle, GraphicsUnit)

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

public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectDestinationRectangleThe destination rectangle.
graphicsUnitGraphicsUnitThe graphics unit.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, RectangleF, GraphicsUnit)

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

public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectDestinationRectangleFThe destination rectangle.
graphicsUnitGraphicsUnitThe graphics unit.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, Rectangle, GraphicsUnit, ImageAttributes)

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

public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit, 
    ImageAttributes imageAttributes)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectDestinationRectangleThe destination rectangle.
graphicsUnitGraphicsUnitThe graphics unit.
imageAttributesImageAttributesThe image attributes.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, RectangleF, GraphicsUnit, ImageAttributes)

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

public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit, 
    ImageAttributes imageAttributes)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectDestinationRectangleFThe destination rectangle to draw in.
graphicsUnitGraphicsUnitThe graphics unit.
imageAttributesImageAttributesThe image attributes.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)

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

public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination, 
    GraphicsUnit graphicsUnit)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectSourceRectangleThe rect source.
rectDestinationRectangleThe rect destination.
graphicsUnitGraphicsUnitThe graphics unit.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)

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

public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination, 
    GraphicsUnit graphicsUnit)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectSourceRectangleFThe rect source.
rectDestinationRectangleFThe rect destination.
graphicsUnitGraphicsUnitThe graphics unit.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


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

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)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectSourceRectangleThe rect source.
rectDestinationRectangleThe rect destination.
graphicsUnitGraphicsUnitThe graphics unit.
imageAttributesImageAttributesThe image attributes.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, RectangleF, RectangleF, GraphicsUnit, ImageAttributes)

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)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectSourceRectangleFThe source rectangle.
rectDestinationRectangleFThe destination rectangle.
graphicsUnitGraphicsUnitThe graphics unit to use.
imageAttributesImageAttributesThe image attributes to use.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, Point[])

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

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

See Also


DrawImage(Image, Point[], Rectangle)

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)
ParameterTypeDescription
imageImageThe image to draw.
destPointsPoint[]Array of three PointF structures that define a parallelogram.
srcRectRectangleThe source rectangle.

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
imageImageThe image to draw.
destPointsPoint[]Array of three PointF structures that define a parallelogram.
srcRectRectangleThe source rectangle.
srcUnitGraphicsUnitThe units of measure.

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 imageAttributes)
ParameterTypeDescription
imageImageThe image to draw.
destPointsPoint[]Array of three PointF structures that define a parallelogram.
srcRectRectangleThe source rectangle.
srcUnitGraphicsUnitThe units of measure.
imageAttributesImageAttributesThe image attributes.

See Also


DrawImage(Image, PointF[])

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

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

Exceptions

exceptioncondition
ArgumentNullExceptionimage

See Also


DrawImage(Image, PointF[], RectangleF)

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)
ParameterTypeDescription
imageImageThe image to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFThe source rectangle.

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
imageImageThe image to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFThe source rectangle.
srcUnitGraphicsUnitThe units of measure.

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 imageAttributes)
ParameterTypeDescription
imageImageThe image to draw.
destPointsPointF[]Array of three PointF structures that define a parallelogram.
srcRectRectangleFThe source rectangle.
srcUnitGraphicsUnitThe units of measure.
imageAttributesImageAttributesThe image attributes.

See Also


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

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)
ParameterTypeDescription
sourceImageImageThe image to draw with.
xSingleThe x-coordinate of the upper-left corner of the drawn image.
ySingleThe y-coordinate of the upper-left corner of the drawn image.
widthSingleWidth of the drawn image.
heightSingleHeight of the drawn image.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, Point)

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

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

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


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 sourceImage, int x, int y)
ParameterTypeDescription
sourceImageImageThe image to draw with.
xInt32The x-coordinate of the upper-left corner of the drawn image.
yInt32The y-coordinate of the upper-left corner of the drawn image.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImage(Image, Rectangle)

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

public void DrawImage(Image sourceImage, Rectangle rect)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectRectangleRectangle structure that specifies the location and size of the drawn image.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

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 sourceImage, int x, int y, int width, int height)
ParameterTypeDescription
sourceImageImageThe image to draw with.
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.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also