0

I know there is this question on Stack Overflow that answers how to do this in Android Android solution, and another question on stack overflow that asks and answers how to take a screeshot of the whole webpage at once even the part that are not visible Web browser solution

Now my question is i am bulding an hex editor and i want to take a full screenshot of the whole window when i open a file AND NOT JUST THE PART THAT IS CURRENTLY VISIBLE. How do i do this in Java preferably.

Currently, i can get screenshots of only part of file currently visible

Whereas, i want the picture to take a picture of every part of the file and not just the part that is currently visible.

By the way the picture up the is using a free hex editor i downloaded online.

Community
  • 1
  • 1
akinmail
  • 638
  • 6
  • 14
  • Possible dupe? http://stackoverflow.com/questions/58305/is-there-a-way-to-take-a-screenshot-using-java-and-save-it-to-some-sort-of-image – Nick DeFazio Oct 23 '15 at 17:27
  • Not really possible. Any editor with variably sized content will use a scroll pane, displaying only as much as fits into the window. While you *could* possibly make the window larger to show more of the file, you will run into memory issues quickly. Rendering HEX is dead simple, so why not simply do it yourself? – Durandal Oct 23 '15 at 17:53
  • Isn't that the same way taking screenshots in chrome work? Chrome also uses a scroll for webpages that are longer. It seems that the webpage is already fully loaded into memory. So you can take a screenshot of the whole webpage in chrome even if only a small portion is currently showing. By rendering HEX, pls what do you mean? – akinmail Oct 25 '15 at 06:47
  • The difference between taking a cap of a scrollpane from *within* the program containing the scrollpane and taking a cap from *another* program containing *a* scrollpane is simply that you have *no way* of getting a handle on said scrollpane - making this an impractical approach. By "rendering HEX" I mean paint an image containing what you want *from your program* instead of attempting to fiddle around with *another* program. – Durandal Nov 03 '15 at 17:28

0 Answers0