是否可以将背景图像添加到CAShape?(苹果手机) [英] Is it possible to add a background Image to a CAShape? (iPhone)
本文介绍了是否可以将背景图像添加到CAShape?(苹果手机)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试以任意方式扭曲图像,例如遵循贝塞尔曲线形状.我已经使用CAShapeLayer来创建形状,但是随后似乎无法将其内容设置为Image.如何使图像跟随该形状失真?甚至有可能吗?
I am trying to distort an image in an arbitrary way, following for example a bezier shape. I have used CAShapeLayer to create the shape, but then it seems that setting its contents to an Image does not work. How can I have the image distorted following that shape? Is it even possible?
谢谢!
推荐答案
目前无法实现.如果您认为应该予以支持,我建议提起雷达(http://bugreport.apple.com)
This is currently not possible. I would suggest filing a radar (http://bugreport.apple.com) if you think this should be supported.
另请参见:可以CGImage会添加到CAShapeLayer的content属性吗?
这篇关于是否可以将背景图像添加到CAShape?(苹果手机)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文