DrawImageUnscaled

Graphics.DrawImageUnscaled method (1 of 4)

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


Graphics.DrawImageUnscaled method (2 of 4)

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


Graphics.DrawImageUnscaled method (3 of 4)

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


Graphics.DrawImageUnscaled method (4 of 4)

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