dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.35k stars 965 forks source link

use of webp extension as backgroundimage #11704

Open vsfeedback opened 1 month ago

vsfeedback commented 1 month ago

This issue has been moved from a ticket on Developer Community.


Suggestion! There is already a webp part https://learn.microsoft.com/en-us/dotnet/api/system.drawing.imaging.imageformat.webp?view=net-8.0 however. We can't use that kind of image as background. Please add it.


Original Comments

Feedback Bot on 7/10/2024, 00:58 AM:

(private comment, text removed)

terrajobst commented 1 month ago

It's not clear to me what "Background" means in this context. Do you mean in a WinForms or WPF app?

teo-tsirpanis commented 1 month ago

I think this should be moved to dotnet/winforms; SDC is now owned by the Windows Forms team (#83356).

ViktorHofer commented 1 month ago

cc @JeremyKuhne

elachlan commented 1 month ago

Duplicate of #9014, #9107, #10559

terrajobst commented 1 month ago

@JeremyKuhne @elachlan It looks like we should have one tracking issue for missing support for WebP then? Are these issues all the same?

elachlan commented 1 month ago

This is what was previously communicated:

Unfortunately, there isn't anything we can do here as we're interacting directly with GDI+, which doesn't support this. Please see our recommendations for other libraries to consider for more modern graphics support.

https://github.com/dotnet/runtime/issues/76237#issuecomment-1469009299

JeremyKuhne commented 1 month ago

Webp is supported in theory, I'm looking into the details.

JeremyKuhne commented 1 month ago

Not sure what exactly the constraints are, I need to debug. Ultimately, we're relying on GDI+, which does have a wrapper for the WIC codec for this. I didn't get a smoke test to load, I need to find some time to debug. Whatever the result of that is, we're dependent on Windows here and this is not an area they are investing in.