We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIkit
UIImage
CIImage
CGImage
#import <CoreImage/CoreImage.h> CIImage *ciImage = [CIImage imageWithData:data]; CIContext *ciContext = [CIContext contextWithOptions:nil]; CGImageRef cgImage = [ciContext createCGImage:ciImage fromRect:[ciImage extent]];
CIImage提供了专门的API:
initWithCGImage
UIImage是顶层API,本身自带了将CIImage, CGImage转UIImageAPI:
initWithCGImage:(CGImageRef)cgImage initWithCIImage:(CIImage *)ciImage
先把UIImage转``CIImage,再转CGImage。
,再转CGImage
The text was updated successfully, but these errors were encountered:
No branches or pull requests
前缀:
UIkit
UIImage
,CIImage
,CGImage
UIImage
在APP里用于展示图片数据。CIImage
表示图片的数据,它包含创建图片的所有信息。CGImage
表示位图CIImage
CGImage
互转
CIImage
转CGImage
CGImage
转CIImage
CIImage
提供了专门的API:CIImage
/CGImage
转UIImage
UIImage
是顶层API,本身自带了将CIImage
,CGImage
转UIImage
API:UIImage
转CGImage
先把
UIImage
转``CIImage,再转CGImage
。参考
The text was updated successfully, but these errors were encountered: