简体   繁体   English

我想将矩形UIImage更改为具有不同形状的多边形图像

[英]i want to change rect UIImage to polygon image with different shape

I want to draw a rectangular UIImage to a polygon UIImage. 我想将矩形UIImage绘制为多边形UIImage。 Like below example. 像下面的例子。 矩形影像

to 我想要的最终图像

you will have to look into OpenGL ES, this will definately be able to draw textures onto a plain surface which is tilted, and most likely its your only option . 您将必须研究OpenGL ES,这一定能够在倾斜的平整表面上绘制纹理,并且很可能是您唯一的选择。 plus, the advantage being, you can actually animate the tilt in motion, like on coverflow 另外,优点是,您实际上可以动画化倾斜运动,例如在Coverflow上

im not sure quartz can do it, but you will have to check that. 我不确定石英可以做到这一点,但您必须检查一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM