Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在 C# 中将具有 32 位颜色质量的位图图像转换为 16 位颜色质量
我有问题。
我需要使用 c# 将 32 位 RGB 图像转换为 16 位 RGB。
任何人都可以为我建议一个起点吗?
谢谢
将每个 R、G 和 B 值除以 2 ^ 16 或 65536——将它们向右移动 16 位(这可能是性能提示)——然后重新组合结果。