Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

MyImage 控件 #4868

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

MyImage 控件 #4868

wants to merge 8 commits into from

Conversation

tangge233
Copy link
Contributor

@tangge233 tangge233 commented Oct 1, 2024

支持加载本地和在线 WebP 的图片控件,适配之后的帮助库图片格式变更

代码写的非常不怎么样

相关 Issue LTCatt/PCL2Help#393

@3gf8jv4dv 3gf8jv4dv added · 新功能 等待确认 已经过社区确认,等待开发者确认 labels Oct 1, 2024
@LTCatt LTCatt added 社区处理中 社区正在调查或处理该项 and removed 等待确认 已经过社区确认,等待开发者确认 labels Oct 1, 2024
@tangge233
Copy link
Contributor Author

修改了下实现方式,支持 WebP 的同时支持使用 Base64 编码的图片

@tangge233 tangge233 requested a review from LTCatt October 2, 2024 04:10
@tangge233
Copy link
Contributor Author

tangge233 commented Oct 2, 2024

还需修改 Completed

  • 不清理图片缓存以帮助帮助库图片加载 (加入 UseCache 以减少图片的网络获取频率)
  • 没必要支持 base64(那玩意纯增加文件体积…)

Plain Craft Launcher 2/Modules/Base/MyBitmap.vb Outdated Show resolved Hide resolved
Plain Craft Launcher 2/Controls/MyImage.vb Outdated Show resolved Hide resolved
Plain Craft Launcher 2/Controls/MyImage.vb Outdated Show resolved Hide resolved
@tangge233 tangge233 requested a review from LTCatt October 2, 2024 09:22
@LTCatt LTCatt added 处理中 开发者正在调查或处理该项 🟥 高 优先度:高 and removed 社区处理中 社区正在调查或处理该项 labels Oct 3, 2024
Copy link
Member

@LTCatt LTCatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

又研究了下,这个实现思路不行,在 UI 线程进行网络请求下载图片是不能接受的……
或许需要在 MyImage 中先把 Source 设置为空,然后后台进行网络请求,在下载结束后再把 Byte() 传给 MyBitmap 进行加载?

@LTCatt LTCatt added 等待提交者 需要提交者补充信息或进行操作 and removed 处理中 开发者正在调查或处理该项 🟥 高 优先度:高 labels Oct 8, 2024
@tangge233
Copy link
Contributor Author

考虑放上一个“加载中”图片?

@LTCatt LTCatt added 处理中 开发者正在调查或处理该项 and removed 等待提交者 需要提交者补充信息或进行操作 labels Oct 8, 2024
@LTCatt LTCatt added the 🟨 中 优先度:中 label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· 新功能 处理中 开发者正在调查或处理该项 🟨 中 优先度:中
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants