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. C#
  4. screen capture without DLLs

screen capture without DLLs

Scheduled Pinned Locked Moved C#
csharplinux
4 Posts 3 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.
  • L Offline
    L Offline
    likefood
    wrote on last edited by
    #1

    I know I've seen this, but I can't find it, so if someone can throw me a URL or two, that would be awesome! I want to take a screenshot without using any APIs or DLLs or other TLAs (just straight C# methods). The reason is that I want to port it to Linux (using Mono). I'd prefer that it not use anything from Framework 2.0 (only 1.1) because Mono isn't fully implemented for 2.0 yet, but I'll take what I can get.

    -Daniel Typing too fast fro my owngood

    M J 2 Replies Last reply
    0
    • L likefood

      I know I've seen this, but I can't find it, so if someone can throw me a URL or two, that would be awesome! I want to take a screenshot without using any APIs or DLLs or other TLAs (just straight C# methods). The reason is that I want to port it to Linux (using Mono). I'd prefer that it not use anything from Framework 2.0 (only 1.1) because Mono isn't fully implemented for 2.0 yet, but I'll take what I can get.

      -Daniel Typing too fast fro my owngood

      M Offline
      M Offline
      Martin 0
      wrote on last edited by
      #2

      Hello, I think in Framework 1.1 you will have to use the gdi32.dll methods. In Framwork 2.0 you could use Graphics.CopyFromScreen(); Here is a link to a discusion about that. http://www.codeproject.com/script/comments/forums.asp?msg=1827909&forumid=1649&Page=4&userid=1706763&mode=all#xx1827909xx[^] All the best, Martin

      L 1 Reply Last reply
      0
      • L likefood

        I know I've seen this, but I can't find it, so if someone can throw me a URL or two, that would be awesome! I want to take a screenshot without using any APIs or DLLs or other TLAs (just straight C# methods). The reason is that I want to port it to Linux (using Mono). I'd prefer that it not use anything from Framework 2.0 (only 1.1) because Mono isn't fully implemented for 2.0 yet, but I'll take what I can get.

        -Daniel Typing too fast fro my owngood

        J Offline
        J Offline
        Judah Gabriel Himango
        wrote on last edited by
        #3

        I don't think this is possible through the .NET framework directly. Oh, Graphics.CopyFromScreen works.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Lord's Prayer in Aramaic song (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        1 Reply Last reply
        0
        • M Martin 0

          Hello, I think in Framework 1.1 you will have to use the gdi32.dll methods. In Framwork 2.0 you could use Graphics.CopyFromScreen(); Here is a link to a discusion about that. http://www.codeproject.com/script/comments/forums.asp?msg=1827909&forumid=1649&Page=4&userid=1706763&mode=all#xx1827909xx[^] All the best, Martin

          L Offline
          L Offline
          likefood
          wrote on last edited by
          #4

          You rock. Thanks! I think I remember that some 2.0 stuff is implemented in mono so far... I'll check it out in MonoDevelop during my lunch. If not, I'll also see if I can use gdi32.dll (does FC6 even have that dll?..., I ask myself). Again, thanks!

          -Daniel Typing too fast fro my owngood

          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