I want to display an image with format webp in my wpf solution, i used the following code.
Image image = new Image();
Binding imageBinding = new() { Source = bytes };
image.SetBinding(Image.SourceProperty, imageBinding);
Get the image via api call, thats why i use bytes and not a path.
The Problem is, when I run my application the image has a black background. How can I fix this?