Вопрос

I think the answer is no, but asking anyway. Does CALayer support vector art?

I get the sense there is some resolution dependence on the resolution of the image used for a CALayer. Am I missing something?

Это было полезно?

Решение

It does, in the sense that a layer subclass, or delegate of a layer can be asked to draw on-demand by the layer. You can fairly easily draw vector art into the layer this way.

Другие советы

There's no support for vector images in QuartzCore.

It means that there are no in-built API's to read and draw any of the vector image formats.

It's possible to write code to read and parse svg format (which is essentially and XML file) and draw everything using primitive drawing methods (creating paths and stroking them)... but that means you have to do everything from scratch yourself.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top