convert ushort[] grayscale values to byte[]
문제
I have uhort[]
values in the format 0-65536
. But I need this grayscale values in byte form!
How can I convert my ushort values in byte values?
Thanks
해결책
byte value = (byte)(array[index] >> 8);
제휴하지 않습니다 StackOverflow