Text on the Image
Hi,
can anybody guide me how to write text on tiff images.
Thanks in Advance
kalit
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
kalit sikkaPosted Apr 26, 2007, 4:36 AM
Mike GoldPosted Apr 26, 2007, 12:25 AM
you could load the image into a graphics device, then use graphics.DrawString(), then save the image back out.
example:
Image img = Image.FromFile(@"c:\chocolate bar.tiff");
Graphics g = Graphics.FromImage(img);
g.DrawString("Willy Wonka", this.Font, Brushes.Black, new PointF(0f, 5f));
img.Save(@"c:\chocolate bar1.tiff", ImageFormat.Tiff);