문제

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