J
John A. Bailo
Know any references for how to screen scape an applet?
John said:Know any references for how to screen scape an applet?
IchBin said:John said:Know any references for how to screen scape an applet?
[...]
BufferedImage image = robot.createScreenCapture(rectangle);
[...]
Thomas said:IchBin said:John said:Know any references for how to screen scape an applet?
[...]
BufferedImage image = robot.createScreenCapture(rectangle);
[...]
I think you'd be better off supplying a custom Graphics object rather
than trying to do character recognition.
Tom Hawtin
IchBin said:Thomas said:IchBin said:John A. Bailo wrote:
Know any references for how to screen scape an applet?
[...]
BufferedImage image = robot.createScreenCapture(rectangle);
[...]
I think you'd be better off supplying a custom Graphics object rather
than trying to do character recognition.
Sorry Tom, why is that.. using the robot.createScreenCapture() has
worked for me. What are some of the implications for doing it this way.
What would be an example for coding a graphics object or just point me
into the right direction, I'd be interested.
Thomas said:IchBin said:Thomas said:IchBin wrote:
John A. Bailo wrote:
Know any references for how to screen scape an applet?
[...]
BufferedImage image = robot.createScreenCapture(rectangle);
[...]
I think you'd be better off supplying a custom Graphics object rather
than trying to do character recognition.
Sorry Tom, why is that.. using the robot.createScreenCapture() has
worked for me. What are some of the implications for doing it this
way. What would be an example for coding a graphics object or just
point me into the right direction, I'd be interested.
Using Robot is fine if you have a dedicated machine, and are interested
in bitmaps rather than text and vector graphics.
To get the raw text, for instance, get the applet to paint itself to one
of your Graphics (or Graphics2D) objects. In the implementation of
Graphics.drawString, capture the text and do with it what you will.
Obviously, there is a degree of set up required to run the applet
outside of a conventional applet viewer.
Tom Hawtin
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.