public class Watermark
extends java.lang.Object
Watermark and Watermark will perform license check
Trial usage will throw exception, you can use TrialException.getSuppressTrialException() to suppress the exception, but it will not lift the restriction here.
A valid license is required to use these features without any restrictions.
Example:
The following code shows how to encode a blind watermark into a mesh and decode it.
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello", null);
String watermark = Watermark.decodeWatermark(encodedMesh, null);
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decodeWatermark(Mesh input)
Decode the watermark from a mesh
|
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)
Encode a text into mesh' blind watermark.
|
static Mesh |
encodeWatermark(Mesh input,
java.lang.String text,
java.lang.String password)
Encode a text into mesh' blind watermark.
|
static Mesh |
encodeWatermark(Mesh input,
java.lang.String text,
java.lang.String password,
boolean permanent)
Encode a text into mesh' blind watermark.
|
public static Mesh encodeWatermark(Mesh input, java.lang.String text) throws java.io.IOException
input - Mesh to encode a blind watermarktext - Text to encode to the meshWatermark and Watermark will perform license check
Trial usage will throw exception, you can use TrialException.getSuppressTrialException() to suppress the exception, but it will not lift the restriction here.
A valid license is required to use these features without any restrictions.
Example:
The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello");
new Scene(encodedMesh).save("test.ply");
java.io.IOExceptionpublic 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 optionalWatermark and Watermark will perform license check
Trial usage will throw exception, you can use TrialException.getSuppressTrialException() to suppress the exception, but it will not lift the restriction here.
A valid license is required to use these features without any restrictions.
Example:
The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
var encodedMesh = Watermark.encodeWatermark(mesh, "Hello", "password");
new Scene(encodedMesh).save("test.ply");
java.io.IOExceptionpublic static Mesh encodeWatermark(Mesh input, java.lang.String text, java.lang.String password, boolean permanent) throws java.io.IOException
input - Mesh to encode a blind watermarktext - Text to encode to the meshpassword - Password to protect the watermark, it's optionalpermanent - The permanent watermark will not be overwritten or removed.Watermark and Watermark will perform license check
Trial usage will throw exception, you can use TrialException.getSuppressTrialException() to suppress the exception, but it will not lift the restriction here.
A valid license is required to use these features without any restrictions.
Example:
The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
var encodedMesh = Watermark.encodeWatermark(mesh, "Hello", "password");
new Scene(encodedMesh).save("test.ply");
java.io.IOExceptionpublic static java.lang.String decodeWatermark(Mesh input)
input - The mesh to extract watermarkjava.lang.SecurityException - The mesh is protected by password, and provided password is incorrect.
Remarks:
Both Watermark and Watermark will perform license check
Trial usage will throw exception, you can use TrialException.getSuppressTrialException() to suppress the exception, but it will not lift the restriction here.
A valid license is required to use these features without any restrictions.
Example:
The following code shows how to decode a blind watermark from a mesh saved in 3D file
Mesh mesh = (Mesh)FileFormat.PLY.decode("test.ply");
String watermark = Watermark.decodeWatermark(mesh);
public 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.
Example:
The following code shows how to decode a blind watermark from a mesh saved in 3D file
Mesh mesh = (Mesh)FileFormat.PLY.decode("test.ply");
String watermark = Watermark.decodeWatermark(mesh, "password");