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


Reset the Image encapsulated in Writer class .
[Visual Basic]
Public Sub Reset()
 
[C#]
public void Reset ( )
 

Return Value

This method doesnot return value

Remarks

Once you load an image in CoolWatermark, all modification methods' result will be added. That means if you resize firstly, then secondly you rotate it, it will rotate the resized one. Thirdly, you want to color adjust it, it will modify the resized and roatated photo.

If all modifications on the photo donot satisfy you and you want to restore the photo's original state, call this method.

Example

The example below will demonstrate how to restore the photo state.

[C#]
// Initialize a new instance of Controller class
angGoGo.CoolWatermark.Writer objWriter=new Writer("Image.jpg");
Image image;

// write a string on the photo , the image in CoolWatermark has been changed
image = objWriter.WriteText ( " Hello World ! " );
// restore the photo, the Hello World text has been lost
objPC.Reset();
// write another string on the photo
image = objWriter.WriteText(" Only this string exists ! " )

//Release the object
objPC.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