Page 1 of 1

Screen capturing

Posted: Fri Dec 29, 2017 8:51 am
by PioPio
Hello,

Is there the possibility to take a screenshot of a web page from CEF4Delphi and save it as image ?
Is saving the page in HTML format the only option?

Many Thanks

Re: Screen capturing

Posted: Fri Dec 29, 2017 9:43 am
by salvadordf
Hi,

For browsers in normal mode you can use :
  • TChromium.TakeSnapshot
  • TChromiumWindow.TakeSnapshot
For OSR mode you can read the bitmap directly from TBufferPanel.Buffer but you should call TBufferPanel.BeginBufferDraw and TBufferPanel.EndBufferDraw before and after copying the bitmap.