Results 1 to 7 of 7

Thread: How would I create a buffered image of my applet?

  1. #1
    Join Date
    Sep 2011
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How would I create a buffered image of my applet?

    Ok so I'm trying to figure out how to take a virtual screenshot of my RS Loader (applet) so that I can see the image, even when it's minimized (like S.M.A.R.T. does) but I'm coming up empty-handed on ideas. Any suggestions from more advanced programmers?

  2. #2
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    I can't help you with this because I've never had to work with taking screenshots, but I just want to say that I don't think its possible to take a picture of the applet while its minimized in pure java, you might have to use JNI.. someone correct me if I'm wrong.

  3. #3
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by ShawnjohnSJ View Post
    I can't help you with this because I've never had to work with taking screenshots, but I just want to say that I don't think its possible to take a picture of the applet while its minimized in pure java, you might have to use JNI.. someone correct me if I'm wrong.
    I don't think that's entirely true. I've been looking through the source of RSBot, and there was a method to capture a screenshot, so I know it's not impossible. I don't know if it would be awfully efficient though, when you think about the number of pixels being handled to make the image, then any methods to cycle through all the pixels. I had the idea of images in different areas (MS, MM, INV, Chat), so it would be dealing with far less data. If you'd like to look into how RSBot dealt with it, I've got the source for the screenshot utility here, you can cycle through the rest of repository to find any other bits that you might find useful.

  4. #4
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Richard View Post
    I don't think that's entirely true. I've been looking through the source of RSBot, and there was a method to capture a screenshot, so I know it's not impossible. I don't know if it would be awfully efficient though, when you think about the number of pixels being handled to make the image, then any methods to cycle through all the pixels. I had the idea of images in different areas (MS, MM, INV, Chat), so it would be dealing with far less data. If you'd like to look into how RSBot dealt with it, I've got the source for the screenshot utility here, you can cycle through the rest of repository to find any other bits that you might find useful.
    Thanks for correcting me. Good to know its possible.

  5. #5
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by ShawnjohnSJ View Post
    Thanks for correcting me. Good to know its possible.
    I haven't proven you wrong just yet I've yet to actually figure out how to do so...

  6. #6
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Well, RSBot takes screenshots while minimized right? If so that pretty much proves me wrong. :P

  7. #7
    Join Date
    Jun 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    don't know about that, but you may be wrong

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •