2
Vote

Artefacts via D3DImage in WPF

description

If I use fw1FontWrapper library in regular window text is drawing fine. But when I draw text in WPF window via D3DImage text has white edge. Please see attached image.

file attachments

comments

jzink wrote Feb 27, 2013 at 2:24 PM

Those artifacts look like an issue with the sampling. Do you know what type of filter is being used to sample the glyph texture?

MarkSinclair wrote Jan 2, 2014 at 9:44 AM

I'm seeing this in a WPF window also. When I set the number of MIP levels to 1 this issue goes away, but then I of course have lower-quality text.

wrote Jan 2, 2014 at 9:45 AM

scandella wrote Dec 9, 2015 at 3:26 PM

WPF and D3DImage use premultiplied alpha. That could be the reason.