如何将所有图片框控件

如何将所有图片框控件

本文介绍了如何将所有图片框控件(子图片框)合并到父图片框中的一个图像中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

////////////////////////////////////////////////////
 pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
 pictureBox1.ImageLocation = Application.StartupPath + "\\pic\\schemaCar.png";
////////////////////////////////////////////////////
 PictureBox picture1 = new PictureBox();
 picture1.SizeMode = PictureBoxSizeMode.StretchImage;
 picture1.Image = new Bitmap(Application.StartupPath + "\\pic\\" + action + ".jpg");
 picture1.Location = new System.Drawing.Point(115, 75);
 picture1.Size = new System.Drawing.Size(17, 60);
 pictureBox1.Controls.Add(picture1);
///////////////////////////////////////////////////
 PictureBox picture2 = new PictureBox();
 picture2.SizeMode = PictureBoxSizeMode.StretchImage;
 picture2.Image = new Bitmap(Application.StartupPath + "\\pic\\" + action + ".jpg");
 picture2.Location = new System.Drawing.Point(82, 75);
 picture2.Size = new System.Drawing.Size(17, 60);
 pictureBox1.Controls.Add(picture2);
 //////////////////////////////////////////////////
 PictureBox picture3 = new PictureBox();
 picture3.SizeMode = PictureBoxSizeMode.StretchImage;
 picture3.Image = new Bitmap(Application.StartupPath + "\\pic\\" + action + ".jpg");
 picture3.Location = new System.Drawing.Point(242, 75);
 picture3.Size = new System.Drawing.Size(17, 59);
 pictureBox1.Controls.Add(picture3);
//////////////////////////////////////////////////
 pictureBox1.Image.Save(@"C:\New folder\picture.jpg");
/////////////////////////////////////////////////



此代码只保存在图片框中的第一个图像,但我需要合并所有图像并保存它......

以上cod:显示picturebox1中的所有图像,但我无法将所有图像保存在一张图片中


this code just save first image in picturebox, but i need merge all images and save it......
above cod: show all images in picturebox1, but i can't save all images in one picture to memory

推荐答案



这篇关于如何将所有图片框控件(子图片框)合并到父图片框中的一个图像中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 05:51