0

I add a label control to my loaded picturebox:

public void addTemp(int x, int y, string name)
{
    Label tempLbl = new Label();
    tempLbl.Location = new Point(x, y);
    tempLbl.BackColor = Color.Transparent;
    tempLbl.ForeColor = Color.WhiteSmoke;
    tempLbl.Font = new Font("Arial", 10, FontStyle.Bold);
    tempLbl.AutoSize = true;

    tempLbl.Text = "P" + name;
    pictureBox1.Controls.Add(tempLbl);
}

How should I save this picture with my label? I tried this and it does not work:

  pictureBox1.Image.Save(window.save_Patch + "\\" + "test.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
Gediminas Masaitis
  • 3,172
  • 14
  • 35
new_user
  • 255
  • 1
  • 2
  • 10

0 Answers0