Click here to Skip to main content
15,881,751 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,
I am developing a C# Windows application, where I am capturing picture, now my requirement is I am taking multiple picture and save it to a single file. How can I make it possible?


Thanks & Regards
Indrajit Dasgupta
Posted
Comments
Mitchell J. 27-Jan-14 1:55am    
What do mean by "save it to a single file"? And where to PictureBoxes come into this?
Rahul VB 27-Jan-14 1:59am    
"I am capturing picture", please elaborate this sentence. I mean to say, first you capture a picture and then store it into a file? or you already have pictures and you want to store it to a file? and how does a picture box come into the scene? Do you want to say: that you want to store pictures in a picture box?
Sergey Alexandrovich Kryukov 27-Jan-14 3:19am    
It does not seem to make any sense. And a PictureBox is used to hold just one static image, if it should be used at all...
—SA
BillWoodruff 27-Jan-14 6:33am    
Are you asking how you can take multiple saved picture files and combine them into one picture, and then save them ?

1 solution

C#
private void onLoadImages(object sender, System.EventArgs e)
{
    OpenFileDialog ofd = new OpenFileDialog();
    ofd.InitialDirectory = System.Environment.CurrentDirectory;
    ofd.Filter = "Icons (*.ico)|*.ico|BMPs (*.bmp)|*.bmp|GIFs (*.gif)|*.gif|JPEGs (*.jp*)|*.jp*|PNGs (*.png)|*.png";
    if (ofd.ShowDialog(this) != DialogResult.Cancel) 
    {
        Image img = Image.FromFile(ofd.FileName);
        this.pictureBox1.Image = new Bitmap(img, new Size(32, 32));
    }
}

refer from :http://www.vbforums.com/showthread.php?482298-1.1-Add-multiple-images-in-a-single-picturebox[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900