Graphics.DrawImageUnscaledAndClipped

Graphics.DrawImageUnscaledAndClipped method

Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.

public void DrawImageUnscaledAndClipped(Image sourceImage, Rectangle rect)
ParameterTypeDescription
sourceImageImageThe image to draw with.
rectRectangleThe Rectangle in which to draw the image.

Exceptions

exceptioncondition
ArgumentNullExceptionsourceImage is null.

See Also