commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Stumpe <jstumpe...@gmail.com>
Subject Re: Writing 16 Bits Per Sample To Tiff File
Date Tue, 05 Jun 2018 12:16:31 GMT
Thanks Damjan,

For the hint. I'll try it.

Juergen

On Tue, Jun 5, 2018 at 12:04 PM, Damjan Jovanovic <damjan@apache.org> wrote:
> 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@gmail.com> 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@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message