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


Load an new image to CoolWatermark from an image object
[Visual Basic]
Public Sub LoadImage( _
      ByVal
image As System.Drawing.Image )
 
[C#]
public void LoadImage (
      System.Drawing.Image
image )
 

Parameters

image
      The new image for CoolWatermark to operate

Return Value

This method doesnot return a value

Remarks

This method is convenient for the user to reload a new image to operate.

Example

[Visual Basic]
' Initialize an empty writer object
Dim objWriter As New Writer( )

' Initialize two Image objects from file
Dim image1 As Image =Image.FromFile ("1.jpg")
Dim image2 As Image =Image.FromFile("2.jpg")

' Write a test string with angle rotation
objWriter.LoadImage(image1)
objWriter.PositionStyle = PositionStyle.TopLeft
objWriter.Angle = 30
image1 = objWriter.WriteText(" Hello World ")

' Write another test string with angle rotation, here you do not need to set Angle property again
objWriter.LoadImage(image2)
objWriter.PositionStyle = PositionStyle.MiddleLeft
image2 = objWriter.WriteText (" Another Hello World ")

' Release the object
objWriter.Dispose

[C#]
// Initialize an empty controller object
angGoGo.CoolWatermark.Writer objWriter=new Writer( );

// Initalize two Image objects from file
Image image1 = Image.FromFile("1.jpg")
Image image2 = Image.FromFile("2.jpg")

// Write a test string with angle rotation
objWriter.LoadImage(image1);
objWriter.PositionStyle = PositionStyle.TopLeft ;
objWriter.Angle = 30 ;
image1 = objWriter.WriteText(" Hello World ");

// Write another test string with angle rotation, here you do not need to set Angle property again
objWriter.LoadImage(image2);
objWriter.PositionStyle = PositionStyle.MiddleLeft ;
image2 = objWriter.WriteText (" Another Hello World ") ;

//Release the object
objWriter.Dispose();


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


Load a new image to CoolWatermark from a file
[Visual Basic]
Public Function LoadImage( _
      ByVal
filename As String)
 
[C#]
public void LoadImage (
      string
filename)
 

Parameters

filename
      The new image's filename for CoolWatermark to operate

Return Value

This method doesnot return a value

Remarks

This method is convenient for the user to reload a new image from a file to write watermark.

Example

Please refer to the examples above

See also

Controller class | angGoGo.CoolWatermark namespace

 
Load a new image to CoolWatermark from a stream
[Visual Basic]
Public Function LoadImage( _
      ByVal
stream As System.IO.Stream)
 
[C#]
public void LoadImage (
      System.IO.Stream
stream)
 

Parameters

stream
      The stream encapsulated with image for CoolWatermark to operate

Return Value

This method doesnot return a value

Remarks

This method is convenient for the user to reload a new image from a stream to write watermark.

Example

Please refer to the examples above

See also

Controller class | angGoGo.CoolWatermark namespace

 

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

  Valid HTML 4.01 Transitional