Graphics.DrawImageUnscaledAndClipped

Graphics.DrawImageUnscaledAndClipped method

在不进行缩放的情况下绘制指定的图像,并在必要时裁剪它以适应指定的矩形。

public void DrawImageUnscaledAndClipped(Image sourceImage, Rectangle rect)
参数类型描述
sourceImage图像用于绘制的图像。
rectRectangle用于绘制图像的 Rectangle

异常

异常条件
ArgumentNullExceptionsourceImage 为 null。

另请参见