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

RFE: Need createScreenCapture(BufferedImage img, int offsetX, int offsetY)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 1.4.0, 5.0, 10, 11
    • client-libs
    • x86
    • windows_xp



      Name: jk109818 Date: 11/08/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      ALL

      ADDITIONAL OPERATING SYSTEMS :
      ALL


      A DESCRIPTION OF THE PROBLEM :
      the createScreenCapture of java.awt.Robot method creates
      lots of garbage when coming to make frequent captures.
      (transparent interfaces, frame grabbing systems, ...)
      There is a need for an other capture method that would take
      a BufferedImage as parameter, so the method would fill it
      with captured data, instead of creating a new BufferedImage
      each time.
      BufferedImage createScreenCapture(BufferedImage img, int
      offsetX, int offsetY);
      the X and Y would be to set the top left corner, while
      dimensions would be taken from the BufferedImage.
      the returned BufferedImage would be the same as the input.

      This bug can be reproduced always.
      (Review ID: 145910)
      ======================================================================

            Unassigned Unassigned
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: