imageWithCGImage:
通过一个Quartz 2D图像创建并返回一个图像对象。
SDK | Version |
---|---|
iOS | 5.0+ |
macOS | 10.5+ |
tvOS | 9.0+ |
声明
/* Objective-C */
+ (CIImage *)imageWithCGImage:(CGImageRef)image;
参数
image
一个Quartz 2D图像(CGImageRef)对象。 有关更多信息,请参阅Quartz 2D编程指南和CGImage。
返回值
使用Quartz 2D图像的内容初始化的图像对象。