Solved

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

Posted on 2009-05-03
1
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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