Watermark.DecodeWatermark
Contents
[
Hide
]DecodeWatermark(Mesh)
Decode the watermark from a mesh
public static string DecodeWatermark(Mesh input)
| Parameter | Type | Description | 
|---|---|---|
| input | Mesh | The mesh to extract watermark | 
Return Value
Blind watermark or null if no watermark decoded.
Exceptions
| exception | condition | 
|---|---|
| UnauthorizedAccessException | The mesh is protected by password, and provided password is incorrect. | 
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 decode a blind watermark from a mesh saved in 3D file
Mesh mesh = (Mesh)FileFormat.PLY.Decode("test.ply");
String watermark = Watermark.DecodeWatermark(mesh);
See Also
- class Mesh
 - class Watermark
 - namespace Aspose.ThreeD.Utilities
 - assembly Aspose.3D
 
DecodeWatermark(Mesh, string)
Decode the watermark from a mesh
public static string DecodeWatermark(Mesh input, string password)
| Parameter | Type | Description | 
|---|---|---|
| input | Mesh | The mesh to extract watermark | 
| password | String | The password to decrypt the watermark | 
Return Value
Blind watermark or null if no watermark decoded.
Exceptions
| exception | condition | 
|---|---|
| UnauthorizedAccessException | The mesh is protected by password, and provided password is incorrect. | 
Examples
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");
See Also
- class Mesh
 - class Watermark
 - namespace Aspose.ThreeD.Utilities
 - assembly Aspose.3D