LEADTOOLS Support
Imaging
Imaging SDK Questions
Add water marks or some header in raster image
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, December 8, 2008 11:14:09 PM(UTC)
Groups: Registered
Posts: 6
Hye I am using C# .net interface vs 2005 . I need to add some header text in the raster image which I will to burn into tiff. The header text may also be in the form of water mark.
Hope to get some answer soon.
#2
Posted
:
Wednesday, December 10, 2008 1:02:56 AM(UTC)
Groups: Registered
Posts: 6
I have found a solution, I have added a text annotation in a container and burned to tiff. But is there some other solution? I would like to know if there is something else as well.
#3
Posted
:
Wednesday, December 10, 2008 2:30:39 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
You can draw text (string) by using the following code:
+-----------------------------------------+
using System.Drawing;
using System.Drawing.Drawing2D;
...
private void button2_Click(object sender, System.EventArgs e)
{
RasterImageGdiPlusGraphicsContainer container = rasterImageViewer1.Image.CreateGdiPlusGraphics();
container.Graphics.SmoothingMode = SmoothingMode.HighQuality;
Brush br = new LinearGradientBrush(Point.Empty, new Point(200, 200), Color.Red, Color.Yellow);
Font font1 = new Font(FontFamily.GenericSansSerif,12);
PointF point1 = new PointF(100,100);
container.Graphics.DrawString("LEADTOOLS",font1,br,point1);
rasterImageViewer1.Refresh();
}
+-----------------------------------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
Add water marks or some header in raster image
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.