Watermark
Inheritance: java.lang.Object
public class Watermark
أداة لتشفير/فك تشفير العلامة المائية العمياء إلى/من شبكة. ملاحظات: كلا Watermark و Watermark سيجريان فحص الترخيص. استخدام النسخة التجريبية سيؤدي إلى استثناء، يمكنك استخدام TrialException.getSuppressTrialException لكتم الاستثناء، لكنه لن يرفع القيد هنا. يلزم وجود ترخيص صالح لاستخدام هذه الميزات دون أي قيود. مثال: الكود التالي يوضح كيفية تشفير علامة مائية عمياء في شبكة وفك تشفيرها.
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello", null);
String watermark = Watermark.decodeWatermark(encodedMesh, null);
الطرق
| طريقة | الوصف |
|---|---|
| decodeWatermark(Mesh input) | فك تشفير العلامة المائية من شبكة |
| decodeWatermark(Mesh input, String password) | فك تشفير العلامة المائية من شبكة |
| encodeWatermark(Mesh input, String text) | تشفير نص في العلامة المائية العمياء للشبكة. |
| encodeWatermark(Mesh input, String text, String password) | تشفير نص في العلامة المائية العمياء للشبكة. |
| encodeWatermark(Mesh input, String text, String password, boolean permanent) | تشفير نص في العلامة المائية العمياء للشبكة. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
decodeWatermark(Mesh input)
public static String decodeWatermark(Mesh input)
فك تشفير العلامة المائية من شبكة
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| input | Mesh | الشبكة لاستخراج العلامة المائية |
Returns: java.lang.String - العلامة المائية العمياء أو null إذا لم يتم فك تشفير أي علامة مائية.
decodeWatermark(Mesh input, String password)
public static String decodeWatermark(Mesh input, String password)
فك تشفير العلامة المائية من شبكة
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| input | Mesh | الشبكة لاستخراج العلامة المائية |
| كلمة المرور | java.lang.String | كلمة المرور لفك تشفير العلامة المائية |
Returns: java.lang.String - العلامة المائية العمياء أو null إذا لم يتم فك تشفير أي علامة مائية.
encodeWatermark(Mesh input, String text)
public static Mesh encodeWatermark(Mesh input, String text)
تشفير نص في العلامة المائية العمياء للشبكة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| input | Mesh | شبكة لتشفير علامة مائية عمياء |
| نص | java.lang.String | النص لتشفيره إلى الشبكة |
Returns: Mesh - A new mesh instance with blind watermark encoded Remarks: Both Watermark and Watermark will perform license check Trial usage will throw exception, you can use TrialException.getSuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions. Example: The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello");
new Scene(encodedMesh).save("test.ply");
encodeWatermark(Mesh input, String text, String password)
public static Mesh encodeWatermark(Mesh input, String text, String password)
تشفير نص في العلامة المائية العمياء للشبكة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| input | Mesh | شبكة لتشفير علامة مائية عمياء |
| نص | java.lang.String | النص لتشفيره إلى الشبكة |
| كلمة المرور | java.lang.String | كلمة المرور لحماية العلامة المائية، وهي اختيارية |
Returns: Mesh - A new mesh instance with blind watermark encoded Remarks: Both Watermark and Watermark will perform license check Trial usage will throw exception, you can use TrialException.getSuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions. Example: 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");
encodeWatermark(Mesh input, String text, String password, boolean permanent)
public static Mesh encodeWatermark(Mesh input, String text, String password, boolean permanent)
تشفير نص في العلامة المائية العمياء للشبكة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| input | Mesh | شبكة لتشفير علامة مائية عمياء |
| نص | java.lang.String | النص لتشفيره إلى الشبكة |
| كلمة المرور | java.lang.String | كلمة المرور لحماية العلامة المائية، وهي اختيارية |
| دائم | boolean | العلامة المائية الدائمة لن يتم استبدالها أو إزالتها. |
Returns: Mesh - A new mesh instance with blind watermark encoded Remarks: Both Watermark and Watermark will perform license check Trial usage will throw exception, you can use TrialException.getSuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions. Example: 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");
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long | |
| arg1 | int |