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

Graphics copyArea doesn't copy any pixels when there is overflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 8u451, 11.0.27-oracle, 17.0.15-oracle, 21.0.7-oracle, 24.0.1, 25
    • client-libs
    • 2d
    • master
    • generic
    • generic

      Graphics.copyArea fails to copy any pixels when there is overflow.
      The spec says ""If a portion of the source rectangle lies outside the bounds of the component, or is obscured by another window or component, {@code copyArea} *will be unable to copy* the associated pixels"

      which suggests that we should always copy the parts inside the bounds and never the parts outside the bounds
      but it seems currently, in the case of overflow it no longer copies any pixels, including the parts that are inside.

            psadhukhan Prasanta Sadhukhan
            psadhukhan Prasanta Sadhukhan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: