What I am trying to do is save a picture from a webcam which is attached to my computer, write a string on top of that picture, and save the file. The way my program runs is first it takes a picture, and then I want to be able to write on top of it. Here is the code I have so far to write on top of my saved image, but it throws an 'ExternalException'.
Bitmap myBitmap = new Bitmap("C:\\Users\\me\\Desktop\\CamApp\\" + filename + ".jpeg");
Graphics g = Graphics.FromImage(myBitmap);
g.DrawString("HELLO", new Font("Tahoma", 40), Brushes.White, new PointF(0, 0));
myBitmap.Save("C:\\Users\\me\\Desktop\\CamApp\\" + filename + ".jpeg",
System.Drawing.Imaging.ImageFormat.Jpeg);
Thanks in advance.