Solved

Get Screen as Bmp/gif/...

Posted on 1998-11-28
1
159 Views
Last Modified: 2010-04-04
I want to store the screen in a picture. How can I do this?
0
Comment
Question by:Shellman
[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
 
LVL 2

Accepted Solution

by:
rene100 earned 20 total points
ID: 1348403
Hi shellman

You can use this code:

procedure TForm1.BitBtn1Click(Sender: TObject);
var
Handle: integer;
begin
Handle:=GetDesktopWindow;
Handle:=GetWindowDC(Handle);
BitBlt(image1.canvas.handle,0,0,form1.width,form1.height,Handle,0,0,SRCCOPY);
image1.picture.SaveToFile('c:\testfile.bmp');
end;

reagards

rene
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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