Support for Offscreen rendering with transparency in linux

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Support for Offscreen rendering with transparency in linux

Postby videoaudio » Tue May 19, 2015 4:22 am

Hello,

I want to know how to set the transparency for CEF3's offscreen rendered output image in linux.

Example screenshots are shown in http://magpcss.org/ceforum/viewtopic.php?f=6&t=11438
I could see that this mode (offscreen rendering + transparency) is supported for windows. Also I see examples for Transparecy tests in Linux builds of cefclient.

Below are my current observations:
1.
I have set window to be transparent with below code.
Code: Select all
CefWindowInfo window_info;
window_info.SetAsWindowless(0/* parent */, true/* transparent */);

Values of Alhpa in each pixel of RGBA output is always being set to 0xFF. (even if transparent flag set to false)

2. I am looking for, "How to set the transparency level in CEF, like transparency level between 0 to 100"
So my custom renderer can blend the transparent output of CEF3 into another image.

I trying out this experiment with cef_binary_3.2171.2069_linux64 build.

Thanks in advance.
videoaudio
Techie
 
Posts: 36
Joined: Tue Feb 17, 2015 10:08 am

Re: Support for Offscreen rendering with transparency in lin

Postby magreenblatt » Tue May 19, 2015 10:27 am

The content loaded in the browser also needs to be transparent. Run cefclient with `--off-screen-rendering-enabled --transparent-painting-enabled` command-line flags and load Tests > Other Tests > Transparency for an example.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Support for Offscreen rendering with transparency in lin

Postby videoaudio » Thu May 21, 2015 11:38 am

Thanks for the note. Let me try out.
videoaudio
Techie
 
Posts: 36
Joined: Tue Feb 17, 2015 10:08 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 37 guests