Array
(
)

Como converter imagem em hexadecimal?

Almeidaspablo
   - 27 ago 2016

Olá, estou estudando um projeto em C# que insere uma imagem em um botão no DataGridView.
Só que tem um probleminha... A imagem está no próprio arquivo em hexadecimal.
Gostaria de saber como faço para converter e deixar da formatação como no código abaixo.
Ficarei muito grato se alguém puder me ajudar.
Link para download do projeto: https://mega.nz/#!hUAxzaaY!SuBFPImIMC_Ka4W6VIyNpfnd7hne6gr0OSfZRHK6amc
#Código

         // The normal Save image
        byte[] normalArray = new byte[] 
        {
            0x42, 0x4D, 0x36, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 
            0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00, 
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x92, 0x54, 0x1F, 
            0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 
            0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 
            0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0xFF, 0x00, 0xFF, 0x92, 0x54, 0x1F, 
            0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21, 0xB4, 0x90, 0x63, 0xB1, 0xB4, 0xB3, 0x68, 0x3F, 0x0D, 
            0x68, 0x3F, 0x0D, 0xFC, 0xFE, 0xFF, 0xEB, 0xE9, 0xED, 0xD2, 0xCB, 0xCD, 0xB1, 0xB4, 0xB3, 
            0x68, 0x3F, 0x0D, 0x8B, 0x67, 0x09, 0xB4, 0x90, 0x63, 0xB4, 0x60, 0x21, 0x92, 0x54, 0x1F, 
            0x92, 0x54, 0x1F, 0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21, 0xB4, 0x90, 0x63, 0xB0, 0xB2, 0xB0, 
            0x68, 0x3F, 0x0D, 0x86, 0x5A, 0x04, 0xFC, 0xFE, 0xFF, 0xFC, 0xFE, 0xFF, 0xEB, 0xE9, 0xED, 
            0xD2, 0xCB, 0xCD, 0x68, 0x3F, 0x0D, 0x8B, 0x67, 0x09, 0xB4, 0x90, 0x63, 0xB4, 0x60, 0x21, 
            0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21, 0xB4, 0x90, 0x63, 
            0xBA, 0xBC, 0xBA, 0x68, 0x3F, 0x0D, 0x86, 0x56, 0x07, 0xFC, 0xFE, 0xFF, 0xF4, 0xF6, 0xFA, 
            0xFC, 0xFC, 0xFC, 0xEB, 0xE9, 0xED, 0x68, 0x3F, 0x0D, 0x8B, 0x67, 0x09, 0xB4, 0x90, 0x63, 
            0xB4, 0x60, 0x21, 0x92, 0x54, 0x1F, 0x92, 0x54, 0x1F, 0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21,
            0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21, 0xB4, 0x60, 0x21, 0x92, 0x54, 0x1F, 
            0x92, 0x54, 0x1F, 0xB4, 0x60, 0x21, 0xBD, 0x7B
        };