Editing a delphi service capture screen

Asked By 60 points N/A Posted on -
qa-featured

 

I’m kind of new to this and I want to make a delphi service capture screen.  I need to make a delphi service capture screen, so that I could send my colleague a net page that we are making a review on. Can anybody teach me how to make a screen shot using the Delphi code and then copy it afterwards into paint so that I could edit the screen shot?

SHARE
Best Answer by Eastern Carl
Answered By 0 points N/A #148619

Editing a delphi service capture screen

qa-featured

Hello Avery, You wanted to know how to capture screen by delphi for capturing a net page. Just go through the page i am providing you. you will find here a detail tutorial for making screen capture by delphi. Here you can also see the code for capturing screen by delphi. The link is

http://forum.codecall.net/topic/60613-how-to-capture-screen-with-delphi-code/#axzz2D8GscqnE

Please go through this link to learn in details.

Best Answer
Best Answer
Answered By 5 points N/A #148620

Editing a delphi service capture screen

qa-featured

Dear user,

You can access to the Web browser functionality from your Delphi apps through TWebBrower. The custom function WebBrowserScreenShot will capture the contents of a TWebBrower's client area into a JPEG image and save it to a specified file.

 procedure TForm1.FormCreate(Sender: TObject) ;
 begin
   WebBrowser1.Navigate('https://www.thoughtco.com/delphi-programming-4133475') ;
 end;
 
 procedure TForm1.WebBrowser1NavigateComplete2(ASender: TObject; const pDisp: IDispatch; var URL: OleVariant) ;
 begin
   WebBrowserScreenShot(WebBrowser1,'c:WebBrowserImage.jpg') ;
 end; 

The code above saves the "https://www.thoughtco.com/delphi-programming-4133475" site's screen shot to a file named WebBrowserImage.jpg on the C drive.

Hope this will help you.

Thank you.

Related Questions