ZennoLab Assemblies Documentation
ImageProcessingWaterMarkImageFromUrl Method (ZennoPoster)
Example 

Type: System.String

The url of the image.

Type: System.String

The save file path.

Type: System.String

The type of the imposition. It can be "horizontally" or "diagonally".

Type: System.String

The type of the location. It can be "center", "leftbottom", "lefttop", "rightbottom" or "righttop".

Type: System.String

The file path of the image which will be a water mark.

Type: System.Int32

The transparency of the water mark. The value from 0 to 100.

Type: System.Int32

The offset from left. Default value is 0.

Type: System.Int32

The offset from top. Default value is 0.

Type: System.Int32

The image quality. The value from 0 to 100. Default value is 100.

Type: System.String

The Exif Tags for metadata of image. Default value is empty string. Each tag must be written from a new line. The format of data is follow: {TagName}|{TagValue}.

Adds the water mark from image to image from url.
Syntax
public static void ImageProcessingWaterMarkImageFromUrl( 
   string url,
   string savePath,
   string imposition,
   string location,
   string path,
   int transparency,
   int offsetLeft,
   int offsetTop,
   int quality,
   string exif
)

Parameters

url

Type: System.String

The url of the image.

savePath

Type: System.String

The save file path.

imposition

Type: System.String

The type of the imposition. It can be "horizontally" or "diagonally".

location

Type: System.String

The type of the location. It can be "center", "leftbottom", "lefttop", "rightbottom" or "righttop".

path

Type: System.String

The file path of the image which will be a water mark.

transparency

Type: System.Int32

The transparency of the water mark. The value from 0 to 100.

offsetLeft

Type: System.Int32

The offset from left. Default value is 0.

offsetTop

Type: System.Int32

The offset from top. Default value is 0.

quality

Type: System.Int32

The image quality. The value from 0 to 100. Default value is 100.

exif

Type: System.String

The Exif Tags for metadata of image. Default value is empty string. Each tag must be written from a new line. The format of data is follow: {TagName}|{TagValue}.

Remarks

The default value of the imposition parameter is "horizontally". The default value of the location is "center".

If parameter of quality not in the range from 0 to 100 then this value will be changed to 100.

Example
The following example shows call the ImageProcessingWaterMarkImageFromUrl method.
// add water mark to image from url
ZennoPoster.ImageProcessingWaterMarkImageFromUrl("someurl.com/image.php", "C:\\ResultImage.jpeg", "horizontally", "center", "C:\\WaterMarkImage.jpeg", 50, 10, 10);
// add water mark to image from url
ZennoLab\CommandCenter\ZennoPoster::ImageProcessingWaterMarkImageFromUrl("someurl.com/image.php", "C:\\ResultImage.jpeg", "horizontally", "center", "C:\\WaterMarkImage.jpeg", 50, 10, 10);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster Class
ZennoPoster Members
ImageProcessingClearExifFromFile Method
ImageProcessingClearExifFromScreenshot Method
ImageProcessingClearExifFromUrl Method
ImageProcessingCropFromFile Method
ImageProcessingCropFromScreenshot Method
ImageProcessingCropFromUrl Method
ImageProcessingMirrorFromFile Method
ImageProcessingMirrorFromScreenshot Method
ImageProcessingMirrorFromUrl Method
ImageProcessingResizeFromFile Method
ImageProcessingResizeFromScreenshot Method
ImageProcessingResizeFromUrl Method
ImageProcessingRotateFromFile Method
ImageProcessingRotateFromScreenshot Method
ImageProcessingRotateFromUrl Method
ImageProcessingUntreatedFromFile Method
ImageProcessingUntreatedFromScreenshot Method
ImageProcessingUntreatedFromUrl Method
ImageProcessingWaterMarkImageFromFile Method
ImageProcessingWaterMarkImageFromScreenshot Method
ImageProcessingWaterMarkTextFromFile Method
ImageProcessingWaterMarkTextFromScreenshot Method
ImageProcessingWaterMarkTextFromUrl Method

Send Feedback