Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The HarmonyOS does not support the function of obtaining color values of different precisions through calculation. #16

Open
yangzhipeng-xx opened this issue Jul 26, 2024 · 0 comments

Comments

@yangzhipeng-xx
Copy link

yangzhipeng-xx commented Jul 26, 2024

Feature Request

harmonyOS获取颜色值暂时只能得到固定的一种颜色,暂不支持通过传入pixelSpacingquality参数来计算获取不同精确度的颜色值。
在Android中,平均颜色值是通过传入pixelSpacing值来计算的,默认为5,值越大,获取到的平均颜色值越精确;Web/iOS是通过传入不同等级的quality来计算获取不同精确度的各项颜色值;harmonyOS中,由于图片解码时获取图片缩略图采样大小是固定值为1,且获取图片颜色的内置API也不支持传参,一个API只能获取一种固定的颜色值。

结论:目前该问题已被标记成已解决。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant