how to split an image in to multiple parts [duplicate]

被刻印的时光 ゝ 提交于 2019-12-29 07:15:30

问题


how can I slice an image into multiple pieces ? my image size is 300x300 an I want to make 9 pieces of it.

Thanks..


回答1:


CWUIKit project available at https://github.com/jayway/CWUIKit has a category on UIImage adding a method like this:

UIImage* subimage = [originalImage subimageWithRect:CGRectMake(0, 0, 100, 100)];

Should be useful for you.



来源:https://stackoverflow.com/questions/6014953/how-to-split-an-image-in-to-multiple-parts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!