סימן מים עיוור
Contents
[
Hide
]סימן מים עיוור
אתה יכול להשתמש בטקסט או בתמונה עבור סימן מים עיוור, ספריית Apose.CAD מספקת את כל הכלים הנדרשים להוספה ובדיקה של סימני מים עיוורים
שימוש בטקסט עבור סימן מים עיוור
קוד לדוגמה:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Text embedding and validation | |
string inputFileName = "Tyrannosaurus.dxf"; | |
string embeddedFileName = "Tyrannosaurus_embedded.dxf"; | |
// Watermark data | |
string watermarkText = "The grass grows and the orioles fly"; | |
// Embed | |
var inputImage = Image.Load(inputFileName); | |
bool embedSuccess = inputImage.WatermarkGuardService.EmbedText(watermarkText); | |
inputImage.Save(embeddedFileName, new DxfOptions()); | |
// Validate | |
var embeddedImage = Image.Load(embeddedFileName); | |
bool validateSuccess = embeddedImage.WatermarkGuardService.ValidateText(watermarkText); |
קובץ עם סימן מים טקסטואלי עיוור
דוגמה להופעת קובץ המשתמש בטקסט עבור סימן מים עיוור.
- הקובץ לפני הוספת סימן המים הטקסטואלי
- התוצאה של הוספת סימן המים הטקסטואלי
שימוש בתמונה אחרת כסימן מים עיוור
קוד לדוגמה:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string inputFileName = "robot_handling_cell.dxf"; | |
string watermarkFileName = "Clock-Icon.png"; | |
string embeddedFileName = "robot_handling_cell_embedded.dxf"; | |
// Watermark data | |
var watermarkStream = new MemoryStream(File.ReadAllBytes(watermarkFileName)); | |
// Embed | |
var inputImage = Image.Load(inputFileName); | |
bool embedSuccess = inputImage.WatermarkGuardService.EmbedImage(watermarkStream); | |
inputImage.Save(embeddedFileName, new DxfOptions()); | |
// Validate | |
var embeddedImage = Image.Load(embeddedFileName); | |
bool validateSuccess = embeddedImage.WatermarkGuardService.ValidateImage(watermarkStream); |
הוספת תמונה אחרת כסימן מים עיוור
דוגמה לצורת קובץ המשתמש בתמונה אחרת כדי להוסיף סימן מים עיוור.
- הקובץ לפני הוספת התמונה כסימן מים עיוור
- התוצאה לאחר הוספת התמונה כסימן מים עיוור