Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4275538

DirectColorModel.isCompatibleRaster is overly strict

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.2.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: