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

Class Robot getPixelColor(int x, int y) return is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs
    • x86
    • windows_98



      Name: rlT66838 Date: 01/25/2000


      java version "1.3beta"


      When reading a pixel from the screen, the Robot.getPixelColor() returns a Color
      in the form (R, B, G) and not (R, G, B). Perhaps I am overlooking something,
      but the Blue and Green are reversed. When used to set the background Color of a
      Label, the Colors are different:

      label1.setBackground(robot1.getPixelColor(400,400));

      If the pixel color at location 400,400 is 0,0,255;
      The label color will be 0,255,0

      (Review ID: 100299)
      ======================================================================

            dmikhalksunw Denis Mikhalkin (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: