-
Enhancement
-
Resolution: Unresolved
-
P4
-
1.4.0, 5.0, 10, 11
-
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)
======================================================================
- duplicates
-
JDK-6415716 WRobotPeer + Robot .captureScreenshot recreates a huge int array every time
- Closed