最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - Does ImageMagick support drawing vectorized primitives and saving to postscript? - Stack Overflow

programmeradmin4浏览0评论

I've tried playing with Magick++ and drawing few simple primitives:

Magick::InitializeMagick(nullptr);
Image image(Geometry(1900,1200), Color("white"));
image.strokeColor("red");
image.strokeWidth(10);
image.draw(DrawableCircle(100,100,50,100));
image.draw(DrawableRectangle(200,200,270,170));
image.write("test.eps");

And those primitives do not seem to be vectorized. Checking the .eps file in notepad shows, that after prolog it uses DisplayImage procedure, but doesn't contain primitives. I know ImageMagick supports reading postscript, but does it support saving to it with actual vectorized primitives, or does it do some type of conversion to an image which is not vectorized at all? Couldn't find information about this anywhere.

发布评论

评论列表(0)

  1. 暂无评论