Ir para conteúdo
Fórum Script Brasil

thathafernandinha

Membros
  • Total de itens

    3
  • Registro em

  • Última visita

Sobre thathafernandinha

Perfil

  • Gender
    Female

thathafernandinha's Achievements

0

Reputação

  1. Olá pessoal, estou montando uma biblioteca de imagens e achei isso como exemplo será que alguém pode me ajudar a entender esse trecho? ..... aligned = 4 - (width * 3) % 4; padding = (aligned == 4) ? 0 : aligned; totalSize = 54 + (((width * 3) + padding) * height); /* Allocate room to store filedata */ fileData = (byte*)malloc((size_t)totalSize); if (fileData == NULL) { printf("Could not allocate sufficient memory.\n"); exit(EXIT_FAILURE); } /* Initialise first 54 bytes, set total size and width and height correctly */ for (i = 0; i < 54; i++) { fileData = header; } /* File size */ fileData[2] = (byte)(totalSize & 0xFF); fileData[3] = (byte)((totalSize >> 0x08) & 0xFF); fileData[4] = (byte)((totalSize >> 0x10) & 0xFF); fileData[5] = (byte)((totalSize >> 0x18) & 0xFF); ..... Obrigada!
  2. Ow pessoal obrigada, vou dar uma olhada estou estudando algumas coisas mais essas ainda não olhei....vou dar uma olhada nos links.... achei um cod. para estudo que faz a leitura mais .bmp 24bits,+ eu preciso fazer leitura de todos não só o de 24, outra coisa que preciso pesquisar como fazer isso, pra estudar e implementar a biblioteca de imagem. Obrigada, E se puderem me ajudar ainda seria ótimo!
  3. Ola, sera que alguém pode me ajudar, preciso abrir e fazer a leitura de um imagem bitmap em C, para isso preciso ler o cabecalho do arquivo, mapa de bits e etc... alguém pode me dar uma luz...Obrigada!
×
×
  • Criar Novo...