Ai ถึง Jpg

Contents
[ ]

Aspose.PSD เป็น SDK รูปแบบ PSD ซึ่งยังสามารถแปลงไฟล์ AI เป็น Jpg ได้คุณสามารถแปลงไฟล์ Adobe Illustrator เป็นไฟล์ Jpg ได้ สำหรับการส่งออก Ai คุณต้องใช้ โค้ดตัวอย่างต่อไปนี้:

โค้ดตัวอย่างด้านล่างนี้ แสดงให้เห็นวิธีการส่งออกไฟล์ AI เป็น Jpg ด้วย File Format Manipulation API

// 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 File Format, Jpeg Allowed Lossy Error ได้

นี่คือตัวอย่างการส่งออกเป็น Jpeg:

ส่งออก Ai ด้วยน้ำหนักเส้นทางที่ต่างกัน แปลง Ai ด้วยตัวอย่างเส้นทางที่ซับซ้อน
todo:image_alt_text

todo:image_alt_text