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.WriteImage method


Write an image on the loaded image

[Visual Basic]
Public Function WriteImage( sourceimage As Image ) As System.Drawing.Image
 
[C#]
public System.Drawing.Image WriteImage( Image sourceimage )
 

Parameters

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

Return Value

The Image object with a overlapped image

Remarks

Before you call this method to write watermark image, you should specifies the properties if you do not want to use default configuration.
You can assign the Border to write a overlapped image with border

Example

[C#]

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

// Get a source image
Image sourceimage = Image.FromFile("2.jpg");

// Config the properties
objWriter.PositionStyle = PositionStyle.MiddleCenter;
objWriter.Border = new Border(Pens.Black);

// Write the text
Image image = objWriter.WriteImage( sourceimage );

// 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