Solved

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

Posted on 2009-05-03
1
223 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now