Watermark.EncodeWatermark
EncodeWatermark(Mesh, string)
Encode a text into mesh’ blind watermark.
public static Mesh EncodeWatermark(Mesh input, string text)
Parameter | Type | Description |
---|---|---|
input | Mesh | Mesh to encode a blind watermark |
text | String | Text to encode to the mesh |
Return Value
A new mesh instance with blind watermark encoded
Remarks
Both EncodeWatermark
and DecodeWatermark
will perform license check Trial usage will throw exception, you can use SuppressTrialException
to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions.
Examples
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");
new Scene(encodedMesh).Save("test.ply");
See Also
- class Mesh
- class Watermark
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
EncodeWatermark(Mesh, string, string)
Encode a text into mesh’ blind watermark.
public static Mesh EncodeWatermark(Mesh input, string text, string password)
Parameter | Type | Description |
---|---|---|
input | Mesh | Mesh to encode a blind watermark |
text | String | Text to encode to the mesh |
password | String | Password to protect the watermark, it’s optional |
Return Value
A new mesh instance with blind watermark encoded
Remarks
Both EncodeWatermark
and DecodeWatermark
will perform license check Trial usage will throw exception, you can use SuppressTrialException
to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions.
Examples
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");
See Also
- class Mesh
- class Watermark
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
EncodeWatermark(Mesh, string, string, bool)
Encode a text into mesh’ blind watermark.
public static Mesh EncodeWatermark(Mesh input, string text, string password, bool permanent)
Parameter | Type | Description |
---|---|---|
input | Mesh | Mesh to encode a blind watermark |
text | String | Text to encode to the mesh |
password | String | Password to protect the watermark, it’s optional |
permanent | Boolean | The permanent watermark will not be overwritten or removed. |
Return Value
A new mesh instance with blind watermark encoded
Remarks
Both EncodeWatermark
and DecodeWatermark
will perform license check Trial usage will throw exception, you can use SuppressTrialException
to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions.
Examples
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");
See Also
- class Mesh
- class Watermark
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D