Graphics.DrawImageUnscaled

DrawImageUnscaled(Image, Rectangle)

Draws a specified image using its original physical size at a specified location.

public void DrawImageUnscaled(Image sourceImage, Rectangle rect)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectRectangleRectangle that specifies the upper-left corner of the drawn image. The X and Y properties of the rectangle specify the upper-left corner. The Width and Height properties are ignored.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImageUnscaled(Image, int, int, int, int)

Draws a specified image using its original physical size at a specified location.

public void DrawImageUnscaled(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.
widthInt32The parameter is not used.
heightInt32The parameter is not used.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImageUnscaled(Image, Point)

Draws a specified image using its original physical size at a specified location.

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

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also


DrawImageUnscaled(Image, int, int)

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

public void DrawImageUnscaled(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