The generic color space is deprecated. Instead try;
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
                  Andrew Grant
                   2009-02-18 08:48:01
                
              The generic color space is deprecated. Instead try;
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
I failed to say it clearly a moment ago, see my question at this link: http://stackoverflow.com/questions/561663/pull-out-the-rgb-component-from-bitmapcontext-on-iphone