Text on the Image
Hi,
can anybody guide me how to write text on tiff images.
Thanks in Advance
kalit
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Apr 25, 2007, 8:25 PM EDT
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);kalit sikka71 pointsPosted Apr 26, 2007, 12:36 AM EDT