Home > Back-end >  Consult use Delphi control Chromium how to realize the full web screenshot?
Consult use Delphi control Chromium how to realize the full web screenshot?

Time:11-11

Installed CEF4Delphi,
Demos are an example of screenshots: SimpleOSRBrowser use TBufferPanel then
If SaveDialog1. Execute then Panel1. SaveToFile (SaveDialog1. FileName); , intercept web pages, but only captures the part of the screen display,

I use the following code in the demos of MiniBrowser, also is only captures the display part:
TempBitmap:=nil;

Try
BMP SaveDialog1. DefaultExt:=' ';
SaveDialog1. Filter:='Bitmap files (*. BMP) | *. BMP';

If SaveDialog1. Execute the and
(length (SaveDialog1 FileName) & gt; 0) and
Then Chromium1. TakeSnapshot (TempBitmap)
TempBitmap. SaveToFile (SaveDialog1. FileName);
The finally
If (TempBitmap & lt;> Nil) then FreeAndNil (TempBitmap);
end;

Query online F12, Ctrl + Shift + p, full run the Capture full size screenshot I can speed the browser in 360, but in the test run manually in the procedure of MiniBrowser Capture full size screenshot didn't have any reaction,


I want to use Chromium1 to save the entire web for pictures, ask how to do?

CodePudding user response:


Compared to 360 speed browser, little a lot, don't know how to add up, which is able to add up the capture, whether using Delphi program calls?
  • Related