I have the following problem. I want to make some graphics in bitmap image like bond form
i can write a text in image
but i will write more text in various positions
Bitmap a = new Bitmap(@"path\picture.bmp");
using(Graphics g = Graphics.FromImage(a))
{
g.DrawString(....); // requires font, brush etc
}
How can I write text and save it, and write another text in saved image.
To draw multiple strings, call
graphics.DrawStringmultiple times. You can specify the location of the drawn string. This example we will draw two strings “Hello”, “Word” (“Hello” in blue color upfront “Word” in red color):Edit: “I Add a load and save code”.
You can open the bitmap file any time
Image.FromFile, and draw a new text on it using the above code. and then save the image filebitmap.Save