iphone - 什么是 CG 插值质量?

标签 iphone ios objective-c camera

我已经在我的应用程序中实现了一个摄像头,我想知道什么是 CGinterpolationquality。关于它的作用的文档不多。

最佳答案

来自CGContext Reference :

Returns the current level of interpolation quality for a graphics context.

Interpolation quality is a graphics state parameter that provides a hint for the level of quality to use for image interpolation (for example, when scaling the image). Not all contexts support all interpolation quality levels.

此外...

CGInterpolationQuality

Levels of interpolation quality for rendering an image.

enum CGInterpolationQuality {
   kCGInterpolationDefault = 0,
   kCGInterpolationNone = 1,
   kCGInterpolationLow = 2,
   kCGInterpolationMedium = 4,
   kCGInterpolationHigh = 3
};
typedef enum CGInterpolationQuality CGInterpolationQuality;

kCGInterpolationDefault: The default level of quality.

kCGInterpolationNone: No interpolation.

kCGInterpolationLow: A low level of interpolation quality. This setting may speed up image rendering.

kCGInterpolationMedium: A medium level of interpolation quality. This setting is slower than the low setting but faster than the high setting.

kCGInterpolationHigh: A high level of interpolation quality. This setting may slow down image rendering.

关于iphone - 什么是 CG 插值质量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17285103/

相关文章:

iPhone + OSX 面向同一项目

ios - 自定义选项卡栏上的“更多”菜单

ios - Restkit 基于先前值的动态映射

ios - 检索框架外的 Storyboard 元素

iphone - 将 block 闭包存储为 IBAction

iphone - 使用来自 URL 的 NSData 发生内存泄漏

iOS10 文件系统 - 文件是否不再位于应用程序容器中?

ios - 如果应用是通过触摸推送启动的,有没有办法等待应用的主页面完成加载后运行代码?

ios - cellForItemAtIndexPath : 中不是唯一的单元格

objective-c - 标题中有两行文本的 UIButton (numberOfLines=2)