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

SystemColor.getRGB() returns value without Alpha Channel information

XMLWordPrintable

    • x86
    • windows_nt




      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: