Iphone convert color image to 2bit image (black-white)

后端 未结 3 896
半阙折子戏
半阙折子戏 2021-01-01 08:50

I need help to convert a color image to \"black and white\", not grayscale.

I what to do this with the iPhone SDK and Core Graphics, as I\'m convinced this is possib

3条回答
  •  被撕碎了的回忆
    2021-01-01 08:57

    You can use the CGBitmapContextCreate method to get the data from an image.

    Have a look at his link : https://stackoverflow.com/a/448758/1863223

提交回复
热议问题