We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
harmonyOS获取颜色值暂时只能得到固定的一种颜色,暂不支持通过传入pixelSpacing或quality参数来计算获取不同精确度的颜色值。 在Android中,平均颜色值是通过传入pixelSpacing值来计算的,默认为5,值越大,获取到的平均颜色值越精确;Web/iOS是通过传入不同等级的quality来计算获取不同精确度的各项颜色值;harmonyOS中,由于图片解码时获取图片缩略图采样大小是固定值为1,且获取图片颜色的内置API也不支持传参,一个API只能获取一种固定的颜色值。
pixelSpacing
quality
结论:目前该问题已被标记成已解决。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Request
harmonyOS获取颜色值暂时只能得到固定的一种颜色,暂不支持通过传入
pixelSpacing
或quality
参数来计算获取不同精确度的颜色值。在Android中,平均颜色值是通过传入
pixelSpacing
值来计算的,默认为5,值越大,获取到的平均颜色值越精确;Web/iOS是通过传入不同等级的quality
来计算获取不同精确度的各项颜色值;harmonyOS中,由于图片解码时获取图片缩略图采样大小是固定值为1,且获取图片颜色的内置API也不支持传参,一个API只能获取一种固定的颜色值。结论:目前该问题已被标记成已解决。
The text was updated successfully, but these errors were encountered: