Screen Grabber.

This is a discussion on Screen Grabber. within the C++ Programming forums, part of the General Programming Boards category; Hi, I've created a screen grabber which captures the current image on the screen, but it's really slow. It basically ...

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

    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):
    Getting Pixel Colour Screen
    "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, 03:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21