git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing 16 Bits Per Sample To Tiff File


You can make a BufferedImage with TYPE_USHORT_GRAY for 16 bits per sample.

Damjan



On Tue, Jun 5, 2018 at 11:15 AM Juergen Stumpe <jstumpe.ho@xxxxxxxxx> wrote:

> Hello,
>
> I need to write grayscale pixels with 16 bits per sample into a Tiff file.
>
> In the provided Apache examples the Imaging.writeImage() method is
> used to write image data into a file. But the image data source has
> always to be a BufferedImage, however BufferedImage handles only 8
> bits per sample, not 16 bits.
>
> Is there an alternative class/method to write image data to a Tiff
> file, supporting 16 bits per sample? Or how can it be done with
> BufferedImage?
>
> Thanks
>
> Juergen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxx
>
>


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-commons-developers/msg06443.html on line 98
Call Stack
#TimeMemoryFunctionLocation
10.0007363128{main}( ).../msg06443.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-commons-developers/msg06443.html on line 98
Call Stack
#TimeMemoryFunctionLocation
10.0007363128{main}( ).../msg06443.html:0