Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Svga库使用RGB_565配置加载Bitmap,导致渲染效果差,和官网工具效果不一致。 #447

@graysonwu2018

Description

@graysonwu2018

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

Svga库使用RGB_565配置加载Bitmap,导致渲染效果差,和官网工具效果不一致。

这是作者您考虑到性能问题做的让步吗?
在SVGABitmapDecoder Bitmap解码器这个类里面,准备Bitmap资源时,设置了inPreferredConfig = Bitmap.Config.RGB_565方法,它的作用为何,为了在测量图片大小时提高性能?何故在测量完毕后不设置回Bitmap.Config.RGB_8888。
还是为了避免其他问题的无奈选择?比如之前频繁出现的OOM问题?

可是这种一刀切的动作,会导致android端渲染效果大幅下降,文件实际质量被压缩,为什么不考虑提供一个外部设置,供其他开发者自行设置呢?

在线等作者回复!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions