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. protect my picture

protect my picture

Scheduled Pinned Locked Moved C#
tutorialquestion
2 Posts 2 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.
  • O Offline
    O Offline
    oOomen
    wrote on last edited by
    #1

    for example i have a small programm with a picture inside. can i protect this picture form making screen shot by pressing screen shot key( but its not so imporant) can i catch an event if some other program prepars to make a screen shot? ist it possible to protect my picture?:confused: thanks in advance!

    H 1 Reply Last reply
    0
    • O oOomen

      for example i have a small programm with a picture inside. can i protect this picture form making screen shot by pressing screen shot key( but its not so imporant) can i catch an event if some other program prepars to make a screen shot? ist it possible to protect my picture?:confused: thanks in advance!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      No, not unless you write directly to the screen buffer (write directly to the graphics device instead going through GDI or GDI+). .NET is too high-level for this, and you'd would have to do a lot of work to make it happen (involves difficult work using the Windows DDK, or device driver kit), and you really have to understand device drivers the Hardware Abstraction Layer (HAL). A better way, perhaps, is to use Managed DirectX, which you can download at http://msdn.microsoft.com/directx[^]. Using the right options with DirectDraw, you can right directly to the screen buffer and taking screenshots - which uses GDI to bitblt the desktop or a particular window - won't see it. This is currently what Windows Media Player (along with some other media players) do to prevent you from taking screenshots of a video (unless you're using a program that rips a frame directly from the decoded bits). If you want to read a good book on Managed DirectX, read Managed DirectX 9 Kick Start : Graphics and Game Programming[^]. To note, Managed DirectX requires the DirectX runtime to be installed, as well as the Managed DirectX libraries. You can read more about this in the Managed DirectX SDK (which is what you'd download from the link above), as well as the deployment documents you can also find from that link. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

      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