❔ load .dds to BitmapImage
Hi,
I am working on a small WPF application for a game. The game's icons are stored as
.dds
files and I need to display them on a canvas. I am familiar with loading .png
s as streams and creating a BitmapImage
from them, but I am unable to figure out how to do it with .dds
.
As far as I am aware, WPF does not support .dds
by itself. Thus I checked out some libraries and found pfim. Loading the image works fine and the data appears to make sense, but I fail at converting the Pfimage
into a BitmapImage
for WPF. The official example uses an older version of net with Bitmap
instead of BitmapImage
.
All other solutions/guides I could find are outdated too. They either use outdated libraries, versions of C# or both. Can someone help me figure out a solution to this?1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.