AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2002

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



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.