|
This artical is going to demostrate the effect of watermark text.
The sample code below initialize the objects needed
[Visual Basic]
Dim image As Image.FromFile("1.jpg")
Dim sourceimage As Image.FromFile("2.jpg")
Dim objWriter As New angGoGo.CoolWatermark.Writer( Image )
objWriter.PositionStyle = PositionStyle.MiddleCenter
[C#]
Image image = Image.From("1.jpg");
Image sourceimage = Image.From("2.jpg");
angGoGo.CoolWatermark.Writer objWriter = new Writer(image);
objWriter.PositionStyle = PositionStyle.MiddleCenter;

Above figure demonstrates to write the sourceimage with a black border
to the original image.
[Code Example]
[C#]
objWriter.Border = new Border(Pens.Black);
image = objWriter.WriteImage(sourceimage);

Above figure demonstrates to write the sourceimage with a black border
and opacity is 50 to the original image.
[Code Example]
[C#]
objWriter.Border = new Border(Pens.Black);
objWriter.Opacity = 50;
image = objWriter.WriteImage(sourceimage);

Above figure demonstrates to write the sourceimage without border and
opacity is 50 to the original image.
[Code Example]
[C#]
objWriter.Opacity = 50;
image = objWriter.WriteImage(sourceimage);

Above figure demonstrates to write the sourceimage with a black border
and angle is 30 to the original image.
[Code Example]
[C#]
objWriter.Border = new Border(Pens.Black);
objWriter.Angle = 30;
image = objWriter.WriteImage(sourceimage);
|