使用 graphics.DrawImage 时停止重复图像

Stop repeating image when usung graphics.DrawImage

我正在尝试合并两个图像并将它们显示在 pictureBox 上,但是当我显示任何小于 pictureBox 大小的图像时,它会重复

我正在使用它与其他图像合并

grfx = Graphics.FromImage(Image1); // Grass.png
grfx.DrawImage(Image2,0,0);        // Mario.png

这是结果 Output of my code

在图片中我希望马里奥只出现一次。 谢谢,

我从互联网上找到的小提示中得到了一些提示,自己想通了。问题是我改变了

pictureBox.BackgroundImageLayout = ImageLayout.Tile 

pictureBox.BackgroundImageLayout = ImageLayout.none

顺便说一句,感谢您的关注。