从2个不同的图像C#创建新图像

我在一个函数中工作,我有两个图像,其中一个是背景,另一个是QR码,我需要使用背景(图像1)和QR图像创建一个新图像,但我需要定义QRCode图像的位置。 像波纹管图像, 在此处输入图像描述

最好的祝福

using (Image background = Image.FromFile("background.jpg")) using (Image qrCode = Image.FromFile("qrCode.jpg")) using (Graphics graphics = Graphics.FromImage(background)) { int x = 100; int y = 100; graphics.DrawImage(qrCode, x, y); background.Save("result.jpg", ImageFormat.Jpeg); }