Archived

This topic is now archived and is closed to further replies.

Argus

[java] screenshots and color stuff

Recommended Posts

Argus    118
Hi all, I''m having some serious problems (again). I want my program to read the current screen image, but the screen capture method in the standard Robot class doesn''t seem to be doing the trick when indexed colors are involved. Anyone have another way to grab pixels from the screen and convert them into standard RGB format?

Share this post


Link to post
Share on other sites
Jiim    136
I think you''d have to go native if you want the whole screen, unless you can find a way to get the palette.

Could you get at the palette by using the createCompatibleImage of the Component class???? I don''t know, it''s just a suggestion.

Jiim Jonez
--
www.javage.net

Share this post


Link to post
Share on other sites
Argus    118
Well I''ve tried a few different ways now including the compatible image and still no joy. Thanks for your suggestion Jiim.

Share this post


Link to post
Share on other sites