Aspose.PSD הוא SDK של פורמט PSD, שיכול גם להמיר קבצי AI ל-Jpg. באפשרותך להמיר קובץ של Adobe Illustrator לקובץ Jpg. לייצוא Ai יש להשתמש בקטע הקוד הבא:
הקוד לדוגמה שמוצג להלן מדגים איך לייצא את קובץ ה-AI ל-Jpg עם ה-API לפירוט פורמטי קובצים
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
// For complete examples and data files, please go to https://github.com/aspose-psd/Aspose.PSD-for-.NET | |
{ | |
@"34992OStroke", | |
@"rect2_color", | |
}; | |
for (int i = 0; i < sourcesFiles.Length; i++) | |
{ | |
string name = sourcesFiles[i]; | |
string sourceFileName = dataDir + name + ".ai"; | |
string outFileName = dataDir + name + ".jpg"; | |
using (AiImage image = (AiImage)Image.Load(sourceFileName)) | |
{ | |
ImageOptionsBase options = new JpegOptions() { Quality = 85 }; | |
image.Save(outFileName, options); | |
} | |
} |
ניתן לציין איכות לפורמט קובץ Jpeg, שגיאת אובדן המותרת ב-Jpeg.
הנה דוגמה לייצוא ל-Jpeg:
ייצוא Ai עם משקלים שונים בנתיבים | המרת Ai עם דוגמה של קו מורכב |
---|---|
|