本帖最后由 yunchao630 于 2014-11-12 12:00:51 编辑

解决方案 »

  1.   

      画一个像素点,并生成图像是这么画
        CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f);
        UIGraphicsBeginImageContext(rect.size);
        CGContextRef context = UIGraphicsGetCurrentContext();
        
        CGContextSetFillColorWithColor(context, [color CGColor]);
        CGContextFillRect(context, rect);
        
        UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
      

  2.   

    ios 中需要使用core graphic 框架来实现图形的绘制。2楼的方法可以先去试试。
      

  3.   

    没有根据每个像素点,直接生成UIImage的函数吗?  Qt和MFC都有的
      

  4.   


    貌似没有这样的函数。
    找到方法了http://blog.csdn.net/devday/article/details/5199218