Article View: borland.public.cppbuilder.nativeapi
Article #1148Re: Window screenshot
From: Joe C. Hecht
Date: Wed, 17 Oct 2007 16:29
Date: Wed, 17 Oct 2007 16:29
33 lines
2255 bytes
2255 bytes
> It is possible to get screenshot of window that is minimalized? > I know that i can restore it, take screenshot and minimalize it again. > but want to get screenshot without user knowledge and without disturn his work. Is it a VCL form? Note that using normal form painting operations to a bitmap may not work for all the VCL controls. For example, the text in a combobox may not render correctly. Our TExcellentFormPrinter product can do a very nice job of capturing a form to a TBitmap , including the entire form (portions that are scrolled from view), and forms that are shown off the screen. If you are intrested in going this route, send me an email for a code example of printing a form to a bitmap, as most of the print functions in the unit assume you are actually printing to a real printer. Anyway, to get this to work, simply show the form off the left side of the screen (so the user does not see it), print it to a bitmap, then minimize it, and reset the left property back to the way it was. TExcellentFormPrinter can be found here: http://www.code4sale.com/joehecht/index.htm Joe -- Delphi, graphics, and printing specialist available - $60/hr http://www.code4sale.com/codeit/index.htm Joe Hecht Associates 121 Louise Drive Crestview, FL 32536
Technical Details
Message-ID:
<47163868@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<op.tz8cyydtwzezly@dune.intranet>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,277f3f9ff1929d06 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Joe C. Hecht" <joehecht@code4sale.com> From: "Joe C. Hecht" <joehecht@code4sale.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <op.tz8cyydtwzezly@dune.intranet> Subject: Re: Window screenshot Date: Wed, 17 Oct 2007 11:29:30 -0500 Lines: 35 Organization: Joe Hecht Associates X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 68.1.74.238 Message-ID: <47163868@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1192638568 68.1.74.238 (17 Oct 2007 09:29:28 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail