using (MemoryStream ms = new MemoryStream(img)) { Image img1 = Image.FromStream(ms); Bitmap bitmap = img1 as Bitmap; graphics.DrawString("Dynamic Text", font, brush, atpoint, sf) graphics.Dispose(); Bitmap SavingObject = new Bitmap(bitmap); SavingObject.Save(@path + "\\" + ImagePath,System.Drawing.Imaging.ImageFormat.Jpeg); bitmap.Dispose(); img1.Dispose(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)