Solved

How can an application take a snapshot of part of itself?

Posted on 2009-05-03
1
226 Views
Last Modified: 2013-11-22
How do I cause an application form to take a screenshot of itself?  If I grab the desktop canvas area defined by the portion  of the form that I want to get an image of I only get the desktop <under> the form.  

The area of the form that I was to "screenshot" is layered of a Timage with some TPaintBox items on top of it.  Because its layout can be quite complicated, it seems that the simplest way would be just to "screenshot" the results.  

The puzzling thing is that at an earlier point in this coding I thought that taking a screenshot of the Desktop area defined by this combined image worked - but now I just get the desktop behind it

0
Comment
Question by:DMTrump
1 Comment
 

Accepted Solution

by:
DMTrump earned 0 total points
ID: 24292149
The answer to my problem is that I had inadvertently set the form's Transparent color property to TRUE.  I don't remember when or why that got set, but once I changed it back to the default False, then the form shows up in the Desktop Canvas and I can use ordinary an Screenshot routine of the Desktop to get the assembled image I wanted.  

So this also is a hint for those who might want to take a screenshot of the desktop but OMIT the applications form - just set the transparent color pro-erty to true.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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