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

qt - switch/case statement in C++ with a QString type -

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

Python's equivalent for Ruby's define_method? -