我收到“kCGImageAlphaPremultipliedLast”的未解决标识符错误。swift找不到它。这在Swift中可用吗?vargc=CGBitmapContextCreate(&pixelData,width:width,height:height,bitsPerComponent:8,bytesPerRow:width*4,imageCS,bitmapInfo:kCGImageAlphaPremultipliedLast); 最佳答案 CGBitmapContextCreate()的最后一个参数定义为结构struct