Exemplo n.º 1
0
        public byte[] GetBytes()
        {
            byte[] result = new byte[24];

            Identifier.CopyTo(result, 0);
            BitConverter.GetBytes(Width).CopyTo(result, 0x04);
            BitConverter.GetBytes(Height).CopyTo(result, 0x08);
            BitConverter.GetBytes(Mode).CopyTo(result, 0x0C);
            BitConverter.GetBytes(UncompressedSize).CopyTo(result, 0x10);
            BitConverter.GetBytes(CompressedSize).CopyTo(result, 0x14);

            return(result);
        }