110,533
社区成员
发帖
与我相关
我的任务
分享
Graphics g = Graphics.FromImage(backgroundImage);
for (int i = 0; i < 9; i++){
g.DrawImage(smallImages[i], i % 3 * (Grid.Width+间隔), i / 3 * (Grid.Height+间隔), Grid.Width, Grid.Height);
}
backgroundImage.Save("");
Bitmap Img = new Bitmap(400, 400); //创建一张空白图片
Graphics g = Graphics.FromImage(Img); //从空白图片创建一个Graphics
g.DrawImage(Image1, new Point(0, 0)); //把图片指定坐标位置并画到空白图片上面
g.DrawImage(Image2, new Point(0, 0)); //坐标自己算
g.DrawImage(Image3, new Point(0, 0)); //坐标自己算
g.DrawImage(Image4, new Point(0, 0)); //坐标自己算
this.BackgroundImage = Img; //显示大图