jjzjj

withColor

全部标签

ios - 使用 CoreImage 生成条纹线 - 无锐边

我使用CoreImage框架生成带有带状线的图像,输出似乎有不正确的边缘,如下图所示。我使用的代码如下。fileprivatefuncgenerateImage(_width:CGFloat,_height:CGFloat,withColor1:CIColor,withColor2:CIColor)->CGImage?{letcontext=CIContext()if#available(iOS10.0,*){letstripes=CIFilter(name:"CIStripesGenerator",withInputParameters:["inputColor0":withColo