?
Solved

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

Posted on 2009-05-03
1
Medium Priority
?
230 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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