• Advertisement

Archived

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

[java] screenshots and color stuff

This topic is 5621 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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

  • Advertisement