DirectColorModel.isCompatibleRaster is overly strict

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.3.0
    • Affects Version/s: 1.2.0
    • Component/s: client-libs
    • None
    • 2d
    • kestrel
    • generic
    • generic

      The isCompatibleRaster() method in DirectColorModel requires that the
      DirectColorModel have the same number of pixelbits as the Raster's
      SampleModel. Unfortunately, since the SampleModel will calculate the
      minimum number of bits required to hold all of the sample masks and since
      the DirectColorModel allows the pixelbits given to it to exceed that number,
      the two might not match for a DirectColorModel with an overly generous
      value for pixelbits.

            Assignee:
            Jim Graham
            Reporter:
            Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: