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

SystemColor.getRGB() returns value without Alpha Channel information

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.1.4
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description




      Name: diC59631 Date: 11/25/97


      the systemcolors getRGB() value always returns a value which bits 24..32 set to 0. this may lead to display errors, because if this RGB value is used to draw in memory-held images, the resulting image will contain transparent points, where these syscolors RGB-Values are used.
      The Color.xxx constants always have the bits 24-32 set to 1.


      System.out.println(
              Integer.toHexString(
                         SystemColor.control.getRGB()
              )
      );

      System.out.println(
              Integer.toHexString(
                         Color.blue.getRGB()
              )
      );
      (Review ID: 20799)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              dindrigo Daniel Indrigo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: