Revert "Fixed Alpha chanel detection when decoding images."

This reverts commit e6ede1104c.
This commit is contained in:
Olivier Poitrey 2012-11-03 21:21:45 +01:00
parent ead67a6c9c
commit 1a360b6faf
1 changed files with 1 additions and 3 deletions

View File

@ -100,9 +100,7 @@ static SDWebImageDecoder *sharedInstance;
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGImageAlphaInfo alphaInfo = CGImageGetAlphaInfo(imageRef);
BOOL imageHasAlphaInfo = (alphaInfo != kCGImageAlphaNone &&
alphaInfo != kCGImageAlphaNoneSkipFirst &&
alphaInfo != kCGImageAlphaNoneSkipLast);
BOOL imageHasAlphaInfo = (alphaInfo != kCGImageAlphaNone);
int bytesPerPixel = imageHasAlphaInfo ? 4 : 3;
CGBitmapInfo bitmapInfo = imageHasAlphaInfo ? kCGImageAlphaPremultipliedLast : kCGImageAlphaNone;