This method sets a digital watermark image or digital watermark text into a raster image.
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 Image property or the Layer(LayerNumber).Image property dpending on the value set in the LayerNumber property. The resulting image is a 24 bit image.