openDICOM.NET API Reference (openDICOM# Class Library)

ByteConvert.ToBytes Method

Converts an array of signed words into an array of bytes.

Overload List

Converts an array of signed words into an array of bytes.

public static byte[] ToBytes(short[]);

Converts a string to an array of bytes by given DICOM character repertoire.

public static byte[] ToBytes(string,CharacterRepertoire);

Converts an array of unsigned words into an array of bytes.

public static byte[] ToBytes(ushort[]);

See Also

ByteConvert Class | openDicom.Encoding Namespace