Find Jobs
Hire Freelancers

create a 8bit bmp image using C

$10-30 USD

En curso
Publicado hace más de 8 años

$10-30 USD

Pagado a la entrega
a) Copy your file [login to view URL] to red_8bit_image.cpp. b) Make [login to view URL] so that it writes out a BMP image file using 8-bits per pixel and a colortable consisting of the red "colors" from 0 for black to 255 for brightest red. Note: You must modify the BITMAPINFOHEADER. A 24-bit BMP image does not have a color table, but your 8-bit BMP files will have a colortable. Therefore, in red_8b it_image.c, you will need to write out a color table at the appropriate place in the output file. You will do this by mallocating a colortable vector containing 256 RGB quads. In your colortable for "red colors", the RGBquad bytes for blue=0, green=0, and red will take values from 0 through 255. Finally, you will write out one-byte per pixel to the output file. Steps: 1) Modify the BITMAPINFOHEADER to indicate an 8-bit BMP image. 2) Modify the rowsize to 4*int(width+3/4) 3) Make sure the imagedata is mallocated to be the correct size to accomodate 1-byte per pel imagedata =(unsigned char *)malloc(rowsize*height*sizeof(unsigned char)); 4) Mallocate an unsigned vector to hold the colortable RGB Quads colortable =(unsigned char *)malloc(4*256*sizeof(unsigned char)); 5) Assign the correct byte-value to each of the RGB values in the colortable RGBquads vector . 6) Make sure the filesize and offset to image data values in the BMP file header reflect the presence of the colortable and the use of 1byte per pixel. 7) Write out the colortable after the header(at the appropriate place in the output file). 8) Is there anything else you need to change in the program?
ID del proyecto: 8611370

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
1 freelancer está ofertando un promedio de $30 USD por este trabajo
Avatar del usuario
Hello... I know how to do it...22 years working with bitmap files... I have my own code to write on any format( 32 bits, 24 bits, 8 bits, 4 bits, 2 bits, 1 bits ) ... So, I can follow your instructions... Be sure that I can do it. I have a master and PhD in digital imagen processing...I must be the best option to you. The code would be perfect...zero bugs. Best regards!...
$30 USD en 3 días
5,0 (125 comentarios)
7,3
7,3

Sobre este cliente

Bandera de UNITED STATES
Fairborn, United States
1,6
1
Miembro desde jul 11, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.