是否有一种方法可以检测Adobe Illustrator文件中是否有任何光栅化的组件?在正常情况下,这样的文件可以是基于矢量的(在这种情况下,当大小增加时,它将很好地缩放),但如果文件中有粘贴的图像,这当然不会缩放。有什么想法吗?任何编程语言的实现都是受欢迎的,尽管最终我会发出C#...
发布于 2009-06-11 14:43:23
Reference Illustrator with COM:
bool HasRaster = false;
Illustrator.Application app = new Illustrator.Application();
Illustrator.Document doc = app.Open("/FileName.AI", null, null);
HasRaster = (doc.RasterItems.Count > 0) ? true : false;
app.Quit();https://stackoverflow.com/questions/779107
复制相似问题