BitMiracle.LibTiff.Classic.Tiff.ShortsToByteArray C# (CSharp) Method

ShortsToByteArray() public static method

Converts array of 16-bit values into array of bytes.
public static ShortsToByteArray ( short source, int srcOffset, int srcCount, byte bytes, int offset ) : void
source short The array of 16-bit values.
srcOffset int The zero-based offset in at /// which to begin converting bytes.
srcCount int The number of 16-bit values to convert.
bytes byte The byte array to store converted values at.
offset int The zero-based offset in at /// which to begin storing converted values.
return void
        public static void ShortsToByteArray(short[] source, int srcOffset, int srcCount, byte[] bytes, int offset)
        {
            Buffer.BlockCopy(source, srcOffset * sizeof(short), bytes, offset, srcCount * sizeof(short));
        }
Tiff