문제

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);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top