Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Loading 16 bits per channel Tiff files
Loading 16 bits per channel Tiff files [message #30464] |
Sun, 02 January 2011 20:13  |
TimCoventry
Messages: 2 Registered: January 2011
|
Junior Member |
|
|
Hi All,
Is there a way to load a 16 bits per colour channel Tiff file so that the full 16 bits can be accessed? Using StreamRaster::LoadFileAny loads the file but the returned Image is only 8 bits per colour channel.
Thank you.
Regards,
Tim
|
|
|
Re: Loading 16 bits per channel Tiff files [message #30466 is a reply to message #30464] |
Sun, 02 January 2011 23:42   |
|
Hi Tim
It is a general property of libtiff that it returns 8bit samples. Also, the whole U++ interface uses 8bits per color, so it would be difficult to fit it in.
According to this mailing list however, you can access the 16bit values using other APIs such as TIFFReadScanline, TIFFReadEncodedStrip or TIFFReadTile. Those should be available in U++ in plugin/tif you will probably just have to include some additional header or declare the functions in your code. There are some relevant examples at http://www.libtiff.org/libtiff.html that look quite promising.
Best regards,
Honza
|
|
|
|
Re: Loading 16 bits per channel Tiff files [message #32186 is a reply to message #30474] |
Fri, 29 April 2011 13:45  |
|
TimCoventry wrote on Mon, 03 January 2011 21:05 | Hi Honza,
Thanks for the quick response. I will look into the TIFFReadScanline and TIFFReadTile functions. The libtiff link looks quite usefull.
Regards,
Tim
|
Hello Tim,
Did you resolve with 16bit tif image?
Have you an example with U++?
Thank you in advance!
|
|
|
Goto Forum:
Current Time: Sat Apr 26 22:11:08 CEST 2025
Total time taken to generate the page: 0.00879 seconds
|