将Adobe Illustrator(.AI)文件的C#导入渲染为位图? [英] C# import of Adobe Illustrator (.AI) files render to Bitmap?

查看:386
本文介绍了将Adobe Illustrator(.AI)文件的C#导入渲染为位图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何加载.AI文件(Adobe Illustrator),然后将矢量栅格化/渲染为位图,这样我就可以生成例如.是JPG还是PNG?

Anyone knows how to load a .AI file (Adobe Illustrator) and then rasterize/render the vectors into a Bitmap so I could generate eg. a JPG or PNG from it?

如果可能的话,我想制作缩略图+用透明的PNG渲染大版本.

I would like to produce thumbnails + render the big version with transparent background in PNG if possible.

如果您知道.AI的规格,那么会导致其可能"出现,但是任何人都没有任何知识或代码可以分享吗?还是仅仅是一些组件的链接?

Ofcause its "possible" if you know the specs of the .AI, but has anyone any knowledge or code to share for a start? or perhaps just a link to some components?

C#.NET请:o)

C# .NET please :o)

代码是最有趣的,因为我对读取矢量点和绘制样条线一无所知.

Code is most interesting as I know nothing about reading vector points and drawing splines.

推荐答案

好吧,如果Gregory正确地认为ai文件是pdf兼容的,并且可以使用GPL代码,那么有一个名为 GhostscriptSharp ,它是可呈现PDF的Ghostscript引擎的.NET接口.

Well, if Gregory is right that ai files are pdf-compatible, and you are okay with using GPL code, there is a project called GhostscriptSharp on github that is a .NET interface to the Ghostscript engine that can render PDF.

这篇关于将Adobe Illustrator(.AI)文件的C#导入渲染为位图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆