com.aspose.threed

Interfaces

Classes

Enums

Exceptions

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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 watermark
        text - Text to encode to the mesh
        password - 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 watermark
        password - The password to decrypt the watermark
        Throws:
        java.lang.SecurityException - The mesh is protected by password, and provided password is incorrect.