c# - convert ushort[] grayscale values to byte[] -


I have the value 0-65536 in the format uhort [] . But I need this grayscale values ​​in the byte form!

How do I change my user values ​​in byte values?

Thanks

  byte value = (byte) (array [index ]> 8);    

Comments

Popular posts from this blog

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -