将8位颜色转换为24位颜色
我想知道是否可以将8位RGB颜色(1个字节=单色)转换为24位RGB颜色((8位=红色,8位=绿色,8位=蓝色)=单颜色)。有什么办法可以做到吗? (我不介意只有256种颜色)。另外,如果可能的话,可以将其写成Python中的公式/功能吗?
I was wondering if I can convert an 8-bit RGB color (1 byte = single color) into a 24-bit RGB color ((8 bits = red, 8 bits = green, 8 bits = blue) = single color). Is there a way it can be done? (I don't mind having only 256 colors). Also, if it would be possible can it be written as a formula/function in Python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)