Window transparency has "halo" artifact

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.

Re: Window transparency has "halo" artifact

Postby marquedej » Tue Sep 29, 2015 1:55 pm

magreenblatt wrote:
marquedej wrote:Is there a "trick" to ensuring that the alpha-channel is enabled so that I can dispense completely with a color-key transparent color for the background?

You need to set CefWindowInfo.transparent_painting_enabled to true and use HTML content that does not specify a background color.

Thanks. That's helped me make progress ... :-)

The initial draw is correctly blending with the windows behind it. However, if I move or resize the window, it's not picking up the new/updated background.

Any thoughts?

Thanks for your patience! :-)

-- Mark
marquedej
Techie
 
Posts: 23
Joined: Wed Dec 04, 2013 7:51 pm

Re: Window transparency has "halo" artifact

Postby MartinM » Mon Oct 12, 2015 8:30 am

Did you create your window using the WS_EX_LAYERED flag?
MartinM
Techie
 
Posts: 25
Joined: Wed Nov 07, 2012 5:21 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 93 guests

cron