ZennoLab Assemblies Documentation
ImageProcessingWaterMarkTextFromScreenshot 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 text of the water mark.

Type: System.Int32

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

Type: System.String

The string of the style in format: [Font], [Size]pt, [TextSyle], ... , [TextSyle], [Color_alfa, Color_red, Color_green, Color_blue]

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 fom text to image from screenshot.
Syntax
public static void ImageProcessingWaterMarkTextFromScreenshot( 
   int instancePort,
   string savePath,
   string imposition,
   string location,
   string text,
   int transparency,
   string style,
   int offsetLeft,
   int offsetTop,
   int quality,
   string exif
)

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".

text

Type: System.String

The text of the water mark.

transparency

Type: System.Int32

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

style

Type: System.String

The string of the style in format: [Font], [Size]pt, [TextSyle], ... , [TextSyle], [Color_alfa, Color_red, Color_green, Color_blue]

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 ImageProcessingWaterMarkTextFromScreenshot method.
// add water mark text to image from sceenshot
ZennoPoster.ImageProcessingWaterMarkTextFromFile(instance.Port, "C:\\ResultImage.jpeg", "horizontally", "center", "water mark text", 50, "Tahoma, 24pt, Bold, Italic, Underline, [255;0;0;0]", 10, 10);
// add water mark text to image from sceenshot
ZennoLab\CommandCenter\ZennoPoster::ImageProcessingWaterMarkTextFromFile($instance->Port, "C:\\ResultImage.jpeg", "horizontally", "center", "water mark text", 50, "Tahoma, 24pt, Bold, Italic, Underline, [255;0;0;0]", 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
ImageProcessingWaterMarkImageFromUrl Method
ImageProcessingWaterMarkTextFromFile Method
ImageProcessingWaterMarkTextFromUrl Method
Instance.Port Property

Send Feedback