Menu

#5 screenShot method messes up screenshots

open
nobody
None
5
2010-04-08
2010-04-08
Anonymous
No

The screenShot method from the GraphViewerRemote interface makes screenshots, but the size is wrong and the whole graph is there allright but not in the right place, there is a shift in both the x and y axis.
Please find the source code and the SVG pictures attached.
- screenshot.svg is the screenshot made by right-clicking ont the display window, that turns out to be correct
- capturegraph.svg is the file created by the screenShot method.
Thanks for the help.

Discussion

  • Nobody/Anonymous

    Source code used and screenshots it makes

     
  • nisaea

    nisaea - 2010-04-09

    adding
    try{ Thread.sleep( 100 ); } catch( Exception e ) { }
    before calling the method could be a solution since the rendering is not over when the screenshot is taken

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.