我已经在我的应用程序中实现了一个摄像头,我想知道什么是 CGinterpolationquality。关于它的作用的文档不多。
最佳答案
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/