2013年3月11日

iOS里生成灰化(黑白)图像

摘要: 代码的目的是根据一个UIImage生成对应的灰化(黑白)UIImage.以下代码源自stackoverflow里的一个回复,可惜原文链接已经找不到了。- (UIImage*) convertImageToGreyScale:(UIImage*) image{ // Create image rectangle with current image width/height CGRect imageRect = CGRectMake(0, 0, image.size.width, image.size.height); // Grayscale color space ... 阅读全文

posted @ 2013-03-11 13:20 零度的火 阅读(1475) 评论(0) 推荐(0) 编辑

导航