2002.05.10 16:22 "please help newbie : need to create a grayscale image.", by Parminder Singh

Hi all,

I am need to create a program in C language using libtiff that will create a grayscale tiff image out of an image array. i am fairly new to this & all examples i have seen use 'char' data type. however, my array is of 16-bit 'short' type & the values range from 0-1280. Could anyone pls tell me how this can be done. A code snippet would be great, any links or pointers to material explaining this process would also be very helpful,

Thanx a lot,

Parminder.