Home    CoolWatermark Online Documentation Prev Next
CoolWatermark
Welcome
Features
Installation
Release Notes
Requirements
Reference
Classes
Writer
Methods
Properties
CoolWatermarkException
Structure
Border
Effect
Shadow
Shape
Enumeration
BrushStyle
EffectStyle
PositionStyle
ShapeStyle
Artical
Effect Samples
Overlapped Image
Shadow Samples
Shape Samples
Write with Border
Customize Shape Warp
Write Halo Text
Purchase
License
[Top]
CoolWatermark Component for .NET ImageComponent.NET Logo
Overlapped Image


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);

 

 

2005-2007 © ImageComponent.NET. All rights reserved.

  Valid HTML 4.01 Transitional