How can I save CefImage to a file (e.g., PNG file)?

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.

How can I save CefImage to a file (e.g., PNG file)?

Postby Streamlet » Wed Sep 11, 2019 7:35 am

As the title.

Dose cef exposes some api for encoding and PNG file?
CefImage::GetAsPNG returns only pixel data, not including PNG header, is my understanding right?
Streamlet
Mentor
 
Posts: 61
Joined: Tue Aug 27, 2019 6:47 am

Re: How can I save CefImage to a file (e.g., PNG file)?

Postby Streamlet » Wed Sep 11, 2019 7:55 am

Oh, I am wrong. CefImage::GetAsPNG returns entire PNG file content.
No problem now.
Streamlet
Mentor
 
Posts: 61
Joined: Tue Aug 27, 2019 6:47 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 52 guests