SaveScreenshotToStream procedure

Top  Previous  Next

EurekaLog includes a function called SaveScreenshotToStream, that enables you to save the current screenshot to a stream (.PNG format). The saving options are gets by the EurekaLog options.

 

Syntax of this function is as follows:

 

procedure SaveScreenshotToStream(Stream: TStream);

 

 

Example:

 

 

uses ExceptionLog; // The required unit...

 

var

   FS: TFileStream;

begin

   FS := TFileStream.Create('Screenshot.png', fmCreate);

   try

     SaveScreenshotToStream(FS);

   finally

     FS.Free;

   end;

end;