Watermark.EncodeWatermark
Contents
[
Hide
]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
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
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