Package com.aspose.threed
Class Watermark
- java.lang.Object
-
- com.aspose.threed.Watermark
-
public class Watermark extends java.lang.Object
Utility to encode/decode blind watermark to/from a mesh.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
decodeWatermark(Mesh input, java.lang.String password)
Decode the watermark from a meshstatic Mesh
encodeWatermark(Mesh input, java.lang.String text, java.lang.String password)
Encode a text into mesh' blind watermark.
-
-
-
Method Detail
-
encodeWatermark
public static Mesh encodeWatermark(Mesh input, java.lang.String text, java.lang.String password) throws java.io.IOException
Encode a text into mesh' blind watermark.- Parameters:
input
- Mesh to encode a blind watermarktext
- Text to encode to the meshpassword
- Password to protect the watermark, it's optional- Throws:
java.io.IOException
-
decodeWatermark
public static java.lang.String decodeWatermark(Mesh input, java.lang.String password)
Decode the watermark from a mesh- Parameters:
input
- The mesh to extract watermarkpassword
- The password to decrypt the watermark- Throws:
java.lang.SecurityException
- The mesh is protected by password, and provided password is incorrect.
-
-