Results 1 to 8 of 8

Thread: Capture

  1. #1
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default Capture

    I need to capture the screen with the cursor. Without drawing it. Is it possible?
    Last edited by PhQ; 10-16-2010 at 12:05 AM.

  2. #2
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    You mean like this?

    Java Code:
    Rectangle screen = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
    BufferedImage screenCapture = new Robot().createScreenCapture(screen);

    That shouldn't have the cursor on it.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,535
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by PhQ View Post
    I need to capture the screen with the cursor. Without drawing it. Is it possible?
    Why do you want the cursor to be visible in the capture? The cursor could move while the capture process is busy. Drawing a cursor is hardware accellerated on a lot of systems and isn't part of the screen content anyway. It can't be done normally (and it's use is completely beyond me except for academic reasons).

    kind regards,

    Jos

  4. #4
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    So it is imposible? How do the screen recording programs do it?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,244
    Rep Power
    19

    Default

    Probably by detecting the mouse position (which is available in Java via MouseInfo / PointerInfo) and drawing a mouse pointer on top of the captured screen image.

    db

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,535
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Darryl.Burke View Post
    Probably by detecting the mouse position (which is available in Java via MouseInfo / PointerInfo) and drawing a mouse pointer on top of the captured screen image.
    But wait! There's a silly restriction: the OP doesn't want to draw any cursors :-P

    kind regards,

    Jos

  7. #7
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Yeah... normal screen captures don't have the mouse on them (just like the Print Screen button). Why doesn't the OP just use that?

  8. #8
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by Zack View Post
    Yeah... normal screen captures don't have the mouse on them (just like the Print Screen button). Why doesn't the OP just use that?
    Fine I'll do that. :(

    Thanks for your help !

Similar Threads

  1. Capture Video from ip camera
    By nesrine18 in forum Advanced Java
    Replies: 3
    Last Post: 03-12-2012, 08:08 PM
  2. DVB-T capture
    By krato in forum Advanced Java
    Replies: 0
    Last Post: 08-03-2010, 11:46 PM
  3. Pixel capture
    By Maiquelnet in forum Advanced Java
    Replies: 1
    Last Post: 11-16-2009, 08:28 PM
  4. How to capture IP packets
    By Hasan in forum Networking
    Replies: 1
    Last Post: 05-31-2007, 05:44 PM

Posting Permissions

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