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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.