Closed jeruik closed 3 years ago
第一张是原图,第二张是我用demo上传的图片,第三张是下载马良app贴纸上传功能添加的图片效果, 下面是我添加图片调用的代码 let image = UIImage.init(named: "test") let chartlet = try? self.canvas.makeTexture(with: image!.pngData()!,id: "test") self.canvas.renderChartlet(at: self.view.center, size: chartlet!.size, textureID: chartlet!.id)
let image = UIImage.init(named: "test")
let chartlet = try? self.canvas.makeTexture(with: image!.pngData()!,id: "test")
self.canvas.renderChartlet(at: self.view.center, size: chartlet!.size, textureID: chartlet!.id)
马良app上传的贴纸效果和原图保持,请教下您是如何上传图片呢,是否有什么参数或者模式我这边没设置,谢谢 。
如果图片打不开,复制链接到浏览器地址栏查看图片 https://nkhigh-1253881638.cos.ap-shanghai.myqcloud.com/images/1.PNG https://nkhigh-1253881638.cos.ap-shanghai.myqcloud.com/images/2.PNG https://nkhigh-1253881638.cos.ap-shanghai.myqcloud.com/images/3.PNG
修改了源码导致该问题,现已恢复
第一张是原图,第二张是我用demo上传的图片,第三张是下载马良app贴纸上传功能添加的图片效果, 下面是我添加图片调用的代码
let image = UIImage.init(named: "test")
let chartlet = try? self.canvas.makeTexture(with: image!.pngData()!,id: "test")
self.canvas.renderChartlet(at: self.view.center, size: chartlet!.size, textureID: chartlet!.id)
马良app上传的贴纸效果和原图保持,请教下您是如何上传图片呢,是否有什么参数或者模式我这边没设置,谢谢 。