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
Writer.WriteText method


Write a specialized text on the loaded image

[Visual Basic]
Public Function WriteText( text As String ) As System.Drawing.Image
 
[C#]
public System.Drawing.Image WriteText( string text )
 

Parameters

text
      The text is going to be written on the loaded image

Return Value

The Image object with written watermark text

Remarks

Before you call this method to write watermark text, you should specifies the properties if you do not want to use default configuration.
If you cannot read the full text, try to reduce the FontSize or change FontFamily.

Example

[C#]

// Initializes a new instance of Writer object
angGoGo.CoolWatermark.Writer objWriter = new Writer("1.jpeg");

// Config the properties
objWriter.FontSize = 24;
objWriter.FontStyle = FontStyle.Bold;

// Write the text
Image image = objWriter.WriteText("Hello World");

// Releases the object
objWriter.Dispose( );

No example is available for VB,C++ or J#, but the theory is the same

 

See also

Writer class | angGoGo.CoolWatermark namespace

 

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

  Valid HTML 4.01 Transitional