Ai를 Jpg로 변환
Contents
[
Hide
]
Aspose.PSD는 PSD 형식 SDK로, AI 파일을 Jpg로 변환할 수도 있습니다. Adobe Illustrator 파일을 Jpg 파일로 변환할 수 있습니다. Ai를 내보내려면 다음 코드 스니펫을 사용해야 합니다:
아래 제공된 샘플 코드는 파일 형식 조작 API를 사용하여 AI 파일을 Jpg로 내보내는 방법을 보여줍니다.
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 변환 |
---|---|
|