Changeset 4874


Ignore:
Timestamp:
03/02/09 14:33:29 (11 years ago)
Author:
curtis
Message:

Use USHORT instead of SHORT for 16-bit integer SignedColorModel. Fixes #359.
This is consistent with the code from before r4804, but does not seem logical.
Further investigation is warranted into the ramifications of this approach.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/AWTImageTools.java

    r4804 r4874  
    786786      } 
    787787      else if (pixelType == FormatTools.INT16) { 
    788         model = new SignedColorModel(16, DataBuffer.TYPE_SHORT, rgbChanCount); 
     788        model = new SignedColorModel(16, DataBuffer.TYPE_USHORT, rgbChanCount); 
    789789      } 
    790790      else if (pixelType == FormatTools.INT32) { 
Note: See TracChangeset for help on using the changeset viewer.