Save image into tiff

http://stackoverflow.com/questions/8714753/how-to-create-a-tiff-on-the-ipad

NSMutableData*mData =[NSMutableData dataWithCapacity:SOME_BIG_NUMBER];
CGImageDestinationRef myImageDest =CGImageDestinationCreateWithData((__bridge  CFMutableDataRef)(mData), kUTTypeTIFF,1, NULL);
CGImageDestinationAddImage(myImageDest,image.CGImage, NULL);
CGImageDestinationFinalize(myImageDest);
CFRelease(myImageDest);

猜你喜欢

转载自shappy1978.iteye.com/blog/2154651