ZennoLab Assemblies Documentation
ImageProcessingWaterMarkImageFromScreenshot Method (ZennoPoster)
Example 

Type: System.Int32

The port of the instance.

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.

Adds the water mark from image to image from screenshot.
Syntax
public static void ImageProcessingWaterMarkImageFromScreenshot( 
   int instancePort,
   string savePath,
   string imposition,
   string location,
   string path,
   int transparency
)

Parameters

instancePort

Type: System.Int32

The port of the instance.

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.

Remarks
The default value of the imposition parameter is "horizontally". The default value of the location is "center".
Example
The following example shows call the ImageProcessingWaterMarkImageFromScreenshot method.
// add water mark to image from screenshot
ZennoPoster.ImageProcessingWaterMarkImageFromScreenshot(instance.Port, "C:\\ResultImage.jpeg", "horizontally", "center", "C:\\WaterMarkImage.jpeg", 50);
// add water mark to image from screenshot
ZennoLab\CommandCenter\ZennoPoster::ImageProcessingWaterMarkImageFromScreenshot($instance->Port, "C:\\ResultImage.jpeg", "horizontally", "center", "C:\\WaterMarkImage.jpeg", 50);
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

ZennoPoster Class
ZennoPoster Members
ImageProcessingCropFromFile Method
ImageProcessingCropFromScreenshot Method
ImageProcessingCropFromUrl Method
ImageProcessingResizeFromFile Method
ImageProcessingResizeFromScreenshot Method
ImageProcessingResizeFromUrl Method
ImageProcessingRotateFromFile Method
ImageProcessingRotateFromScreenshot Method
ImageProcessingRotateFromUrl Method
ImageProcessingUntreatedFromFile Method
ImageProcessingUntreatedFromScreenshot Method
ImageProcessingUntreatedFromUrl Method
ImageProcessingWaterMarkImageFromFile Method
ImageProcessingWaterMarkImageFromUrl Method
ImageProcessingWaterMarkTextFromFile Method
ImageProcessingWaterMarkTextFromScreenshot Method
ImageProcessingWaterMarkTextFromUrl Method
Instance Port Property

Send Feedback