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);
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);
精彩评论