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

add 8-bit alpha channel support for TrayIcon on Windows

    XMLWordPrintable

    Details

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

      Description

      TrayIcon implementation lacks for ability to use scaled transparency.
      Currently it uses only 1 bit to convey transprency of a pixel.
      Thus it can't convert GIF/JPEG/PNG image that uses alpha channel
      into an icon without imformation loss.

      In order to fully support alpha channel we should use
      BITMAPV4HEADER/BITMAPV5HEADER Windows native structure instead of
      BITMAPINFOHEADER. The latter was used by Windows of old versions.

      Originally, the issue has been risen in the JDIC project:
      https://jdic.dev.java.net/issues/show_bug.cgi?id=350
      The fix it provides is put into the Suggested Fix area.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dcherepanov Dmitry Cherepanov
              Reporter:
              ant Anton Tarasov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: