This method sets a digital watermark image or digital watermark text into a raster image.

[Visual Basic] Public Function SetSecretImage(sourceImage As System.Drawing.Image, maskImage As System.Drawing.Image, text As String, font As System.Drawing.Font, rect As System.Drawing.Rectangle, level As Long) As Boolean
[C#] public bool SetSecretImage(System.Drawing.Image sourceImage, System.Drawing.Image maskImage, string text, System.Drawing.Font font, System.Drawing.Rectangle rect, int level);

Parameters

sourceImage
   The image handle of the original image (24 bit color images only) The watermark will be set on this image

maskImage
   The image handle of the digital watermark (1 bit color image)

text
   Sets the digital watermark text (the length of text can be up to 127 bytes)

font
   Sets the font

rect
   The coordinates of the rectangle where the text is to be attached to sourceImage (in pixels)

level
   Sets the level of "detection" for the watermark (-20 to 20)

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The SetSecretImage method sets a digital watermark into a raster image. It can set either a 1 bit color image or text as the watermark. The value of the Level parameter determines how "detectable" the digitable watermark will be. As the Level parameter increases in a positive direction, the digital watermark becomes brighter. As it increases in a negative direction, the digital watermark becomes darker.

If the maskImage parameter is set, the image referred to by the maskImage parameter will be set as the digital watermark. In this case the top left corner of the maskImage will be attached to the sourceImage at the coordinate location determined by the Rect parameter. If the maskImage parameter is 0, then the Text set in the Text parameter will be used as the digital watermark. It will be placed within a rectangular area on the sourceImage as determined by the Rect parameter.

If the Sharpen method is successful and the DestinationAsImageKitImage property is True, the resulting image will be set in the Image property or in the Layer(LayerNumber).Image property, according to the value set in the LayerNumber property.

If the Sharpen method is successful and the DestinationAsImageKitImage property is False, the resulting image will be set in the DestinationImage property.

The resulting image is a 24 bit image.

See Also

ImageKit.Effect Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation