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

VolatileImages cannot subclass BufferedImage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • None
    • 2d
    • x86
    • windows_nt

      Currently, the new VolatileImage objects are implemented as subclasses
      of BufferedImage. This causes a problem with the specification of
      BufferedImage. In particular, a BufferedImage is created as a static object
      (with a static ColorModel, Raster, and SampleModel), whereas a VolatileImage
      can change at any time due to situations such as display mode switches.

      For example, if a user changes the bit depth setting (under Windows) we must
      recreate the data inside of the VolatileImage to be compatible with this
      new display depth (hardware surfaces must always be the same depth as the
      display surface).

      Because of this incompatibility, we need to make VolatileImage objects
      subclass off of Image instead, so that the user can assume nothing about
      the state or static nature of the image.

            chaasesunw Chet Haase (Inactive)
            chaasesunw Chet Haase (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: