【问题标题】:how to split an image in to multiple parts [duplicate]如何将图像拆分为多个部分[重复]
【发布时间】:2011-08-26 06:37:48
【问题描述】:

如何将图像分割成多个部分?我的图像尺寸是 300x300,我想制作 9 块。

谢谢..

【问题讨论】:

    标签: iphone objective-c uiimageview uiimage


    【解决方案1】:

    https://github.com/jayway/CWUIKit 提供的 CWUIKit 项目在UIImage 上有一个类别,添加了这样的方法:

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

    应该对你有用。

    【讨论】:

      猜你喜欢
      • 2011-08-22
      • 2014-03-29
      • 2012-10-23
      • 2010-12-05
      • 1970-01-01
      • 1970-01-01
      • 2014-05-18
      • 2018-07-23
      • 2014-07-25
      相关资源
      最近更新 更多