How capturing a selected area from the screen with Wpf C#

Posted on 2010-04-09
Medium Priority
Last Modified: 2013-11-12
I would like my Wpf c# application to be able to capture any rectanglar area on the screen as an image. the selection could be performed via a rectangle that the user can draw with the mouse.
The  capturing of this area should be done while my application is transparent so I can have a visual access to other windows...
Please help!
Question by:bish wakim
  • 3
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 30204448
You have Silverlight listed as a Zone...is this an XBAP or just a regular WPF app?

Author Comment

by:bish wakim
ID: 30205177
This is a regular WPF
LVL 16

Accepted Solution

CuteBug earned 1500 total points
ID: 30206875

Author Comment

by:bish wakim
ID: 30247564
Yes. I could find a good code for copying an area from the screen into a bitmap . Still the second part of my question. How Can I within my wpf application go to any window (not necessary in my project) and
select a rectanglar area  and retrieve the the four coordinations of this area in order to copy the image
inside it.  

Author Closing Comment

by:bish wakim
ID: 32151121

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question