DrawIconUnstretched

Graphics.DrawIconUnstretched method

绘制指定表示的图像Icon不缩放图像。

public void DrawIconUnstretched(Icon icon, Rectangle targetRect)
范围类型描述
iconIconIcon画。
targetRectRectangleRectangle指定生成图像的位置和大小的结构。 图像未缩放以适合此矩形,但保留其原始大小。如果图像大于矩形, 它会被剪裁以适应它。

也可以看看