Jump to content
  • Advertisement

lendren

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

103 Neutral

About lendren

  • Rank
    Newbie
  1. My whole "Project" is to take two screenshots(main and secondary display) and then read a few pixels to get the color of these. After I got the pixels, I want to calculate a bit with them.  Since I want to take this screenshots continuously, I have to use directX for better performance.   I tried some other methods to take a screenshot, but they are to slow.    The directX solution is in another clean project to test it before I implement it in my "main" project.     Just want to know if it is possible to take a screenshot from my second monitor.
  2. That's the whole project. Just want to take a screenshot from my main and secondary display with directx.   After changing to d.GetFrontBufferData(1, s);  i got this error:     D3DERR_INVALIDCALL: Invalid call (-2005530516)
  3. Thats what I have so far: http://paste.ofcode.org/EfjDzzQ5tJsVZ2mQe7Tnfq   With: Bitmap bitmap = sc.CaptureScreen()  I can easily take a screenshot from my main desktop.     I'm still a beginner in programming.
  4. I can take a screenshot. Its working fine for me. I just dont know how i can take a screenshot from my second desktop.      I tried "Screen.AllScreens" without success.
  5.  Thanks, but this didnt help...
  6. Hi,    How can I take a screenshot on my secondary screen? Thats what i have. public Bitmap CaptureScreen() { using(Surface s = Surface.CreateOffscreenPlain(d, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, Format.A8R8G8B8, Pool.SystemMemory)) { d.GetFrontBufferData(0, s); Bitmap b = new Bitmap(SlimDX.Direct3D9.Surface.ToStream(s, SlimDX.Direct3D9.ImageFileFormat.Bmp, new Rectangle(222, 222, 500, 500))); s.Dispose(); return b; } } This works great, but only for my main display. I could not find anything useful with Google. Please help me.   Thanks and Greetings
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!