How can an application take a snapshot of part of itself?
Posted on 2009-05-03
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