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

[Visual Basic]
Public Function SetSecretImage(sourceImage As Image, maskImage As Image, text As String, font As Font, rect As Rectangle, level As Long) As Boolean
[C#]
public bool SetSecretImage(Image sourceImage, Image maskImage, String text, Font font, 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 successful the resulting raster image handle is set in the DestinationImage property. The resulting image will be a 24 bit image.

See Also

Effect Class | Effect Members

>
The ImageKit.NET3 is created by Newtone Corporation