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.
我有uhort[]格式的值0-65536。但我需要字节形式的灰度值!
uhort[]
0-65536
如何将我的 ushort 值转换为字节值?
谢谢
byte value = (byte)(array[index] >> 8);