public class Watermark
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decodeWatermark(Mesh input,
java.lang.String password)
Decode the watermark from a mesh
|
static Mesh |
encodeWatermark(Mesh input,
java.lang.String text,
java.lang.String password)
Encode a text into mesh' blind watermark.
|
public static Mesh encodeWatermark(Mesh input, java.lang.String text, java.lang.String password) throws java.io.IOException
input - Mesh to encode a blind watermarktext - Text to encode to the meshpassword - Password to protect the watermark, it's optionaljava.io.IOExceptionpublic static java.lang.String decodeWatermark(Mesh input, java.lang.String password)
input - The mesh to extract watermarkpassword - The password to decrypt the watermarkjava.lang.SecurityException - The mesh is protected by password, and provided password is incorrect.