Off-screen mode - display image buffer in window

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Off-screen mode - display image buffer in window

Postby Staxcelrom » Sun May 22, 2022 6:11 am

Hello,

Can you please tell me if there is an example that would show how, in off-screen mode, display the image of the browser window in my created window?

Code: Select all
void OnPaint(CefRefPtr< CefBrowser > browser, CefRenderHandler::PaintElementType type, const CefRenderHandler::RectList& dirtyRects, const void* buffer, int width, int height) override
   {

        }


I tried from the OnPaint callback - pass a buffer "buffer to the window, but it doesn't work.
Staxcelrom
Expert
 
Posts: 206
Joined: Wed Jan 26, 2022 8:20 am

Re: Off-screen mode - display image buffer in window

Postby magreenblatt » Sun May 22, 2022 10:10 am

Refer to the cefclient sample app.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Off-screen mode - display image buffer in window

Postby Staxcelrom » Sun May 22, 2022 10:29 am

Thanks, got it.
Just need to attach format headers from this buffer, which returns OnPaint. For example, attach headers of the bmp format.
Staxcelrom
Expert
 
Posts: 206
Joined: Wed Jan 26, 2022 8:20 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 27 guests