Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. is it possible to sample my screen?

is it possible to sample my screen?

Scheduled Pinned Locked Moved .NET (Core and Framework)
performancequestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neodeaths
    wrote on last edited by
    #1

    does anyone know if it is possible to sample an area of my screen, eg every 5 second into my memory for it to be processed?

    D P T 3 Replies Last reply
    0
    • N neodeaths

      does anyone know if it is possible to sample an area of my screen, eg every 5 second into my memory for it to be processed?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You're going to have to explain that in quite a bit more detail before you get any kind of useful answer. "Sample"? Define that exactly and what you mean by "process".

      A guide to posting questions on CodeProject

      How to debug small programs
      Dave Kreskowiak

      N 1 Reply Last reply
      0
      • N neodeaths

        does anyone know if it is possible to sample an area of my screen, eg every 5 second into my memory for it to be processed?

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Yes, it is.

        You'll never get very far if all you do is follow instructions.

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          You're going to have to explain that in quite a bit more detail before you get any kind of useful answer. "Sample"? Define that exactly and what you mean by "process".

          A guide to posting questions on CodeProject

          How to debug small programs
          Dave Kreskowiak

          N Offline
          N Offline
          neodeaths
          wrote on last edited by
          #4

          hi, sorry for being ambiguous. what i meant was is it possible to sample the image being displayed on my monitor and process it. eg if my monitor top left pixel is red then a message box will appear saying its red.

          D 1 Reply Last reply
          0
          • N neodeaths

            hi, sorry for being ambiguous. what i meant was is it possible to sample the image being displayed on my monitor and process it. eg if my monitor top left pixel is red then a message box will appear saying its red.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Possible, yes. It's quite easy to get a copy of any part of the screen as a Bitmap. Just use Graphics.CopyFromScreen[^].

            A guide to posting questions on CodeProject

            How to debug small programs
            Dave Kreskowiak

            1 Reply Last reply
            0
            • N neodeaths

              does anyone know if it is possible to sample an area of my screen, eg every 5 second into my memory for it to be processed?

              T Offline
              T Offline
              Tino Fourie
              wrote on last edited by
              #6

              There are two ways of doing this through a single process called a SnapShot. 1. You can capture your entire display area, or 2. by defining a rectangular area on the display area called the ROI (Region Of Interest) There are lots of code samples out there that covers both scenarios. Use Google to search for "How to take a snapshot of my display" or "How to capture an area of my screen". You can then save the memory stream (the captured information will be stored in a memory stream) in a few formats - JPG, TIFF, PNG and BMP.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups