Pergunta

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?

Foi útil?

Solução

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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top