Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Screen capturing

Post Reply
PioPio
Posts: 42
Joined: Sun Nov 05, 2017 10:25 pm

Screen capturing

Post 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
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Screen capturing

Post 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.
Post Reply