Garry.Gu
Garry.Gu

Reputation: 51

html display in cefsharp with distortion

enter image description here

I have a WPF application, when I use cefsharp display the HTML, it looks blurry。 I have tried to use the following code, but it does not work.

 settings.CefCommandLineArgs.Add("disable-gpu", "1");
 settings.CefCommandLineArgs.Add("disable-gpu-compositing", "1");
 settings.CefCommandLineArgs.Add("enable-begin-frame-scheduling", "1");
 settings.CefCommandLineArgs.Add("disable-gpu-vsync", "1");


Cef.EnableHighDPISupport();

Are there other ways to fix it?

Upvotes: 1

Views: 915

Answers (1)

Janis S.
Janis S.

Reputation: 2626

In your control XAML try changing BitmapScalingMode

<cefsharp:ChromiumWebBrowser RenderOptions.BitmapScalingMode="HighQuality">

As per this thread, some people had it solved. Also might be interesting to experiment with UseLayoutRounding="True" on parent control.

Upvotes: 1

Related Questions