2007.02.27 18:40 "[Tiff] convert grey-scale to RGB image", by maria fernandez

2007.02.27 18:40 "[Tiff] convert grey-scale to RGB image", by maria fernandez

Hi!!

I have a black&white tiff image.

I read this image with TIFFReadScanline and I show pixels value, I obtain values since 0 until 255. I don't know why because like I have said before is a black&white image.

I have opened the image with the GIMP and I have seen that the image was in grey-scale, then I have saved it as RGB image.

I have read this last image with TIFFReadScanline and now the pixels value are 0 or 255, that it's ok because the image always has been a black&white image.

Is there a method that converts a grey-scale image to RGB image?

I have to do this process with a lot of images, so I want to automatize this process.

Thanks a lot,

Mary

______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com