Thread: Screen Grabber.

  1. #1
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273

    Screen Grabber.

    Hi, I've created a screen grabber which captures the current image on the screen, but it's really slow. It basically shuffles through every pixel on the screen, which can be 786,432 pixels for a 1024*768 resolution it can take a number of minutes to complete using GetPixel()!

    Logic tells me that the content of the screen must be stored somewhere, as it doesn't take 4 minutes to refresh each time

    I was just wondering if anyone knows where this info might be stored? Would it be somewhere in the graphics card or what? If anyone knows, passing on the knowledge would be greatly appreciated!!!

    Cheers

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I suspect anonytmouse's solution is quicker than yours (but possibly not as quick as you need):
    http://cboard.cprogramming.com/showthread.php?t=76907
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM