开发者

convert ushort[] grayscale values to byte[]

开发者 https://www.devze.com 2023-02-19 21:35 出处:网络
I have uhort[] values in the format 0-65536. But I need this grayscale values in b开发者_Go百科yte form!

I have uhort[] values in the format 0-65536. But I need this grayscale values in b开发者_Go百科yte form!

How can I convert my ushort values in byte values?

Thanks


 byte value = (byte)(array[index] >> 8);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号