如题:HarmonyOS 较大的jpg(1080*7679),createPixelMap如果desiredPixelFormat为2,则必抛Create PixelMap error,设为3则正常?
如题:HarmonyOS 较大的jpg(1080*7679),createPixelMap如果desiredPixelFormat为2,则必抛Create PixelMap error,设为3则正常?
1 回答1.1k 阅读✓ 已解决
1 回答1.4k 阅读
1 回答1.2k 阅读
1 回答1.1k 阅读
1 回答1.1k 阅读
1 回答988 阅读
1 回答960 阅读
createPixelMap失败是因为desiredPixelFormat不支持png格式的图片,详见文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-image-V5\#decodingoptions7