Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top