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

PixelWriter javadoc refers to a non-existant PixelFormat.Type.BYTE_ARGB

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      2.2b11

      Description

      javadoc for PixelWriter.setArgb states:

      argb - the color information to write, specified in a format described by the PixelFormat.Type.BYTE_ARGB PixelFormat type.

      However the only existing PixelFormat.Type values are:
      BYTE_BGRA
      The pixels are stored in adjacent bytes with the non-premultiplied components stored in order of increasing index: blue, green, red, alpha.
      BYTE_BGRA_PRE
      The pixels are stored in adjacent bytes with the premultiplied components stored in order of increasing index: blue, green, red, alpha.
      BYTE_INDEXED
      The pixel colors are referenced by byte indices stored in the pixel array, with the byte interpreted as an unsigned index into a list of colors provided by the PixelFormat object.
      BYTE_RGB
      The opaque pixels are stored in adjacent bytes with the color components stored in order of increasing index: red, gree, blue.
      INT_ARGB
      The pixels are stored in 32-bit integers with the non-premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.
      INT_ARGB_PRE
      The pixels are stored in 32-bit integers with the premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.

      Note also the mispelling of green in the BYTE_RGB description,

        Attachments

          Activity

            People

            • Assignee:
              flar Jim Graham
              Reporter:
              josmithjfx John Smith (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: