Reputation: 347
I have uhort[] values in the format 0-65536. But I need this grayscale values in byte form!
uhort[]
0-65536
How can I convert my ushort values in byte values?
Thanks
Upvotes: 0
Views: 1011
Reputation: 942247
byte value = (byte)(array[index] >> 8);
Upvotes: 4