Convert macOS NSImage to Avalonia.Media.Imaging.Bitmap #17233
Unanswered
julianpaulozzi
asked this question in
Q&A
Replies: 1 comment
-
Not the most efficient approach, but you can use representationUsingType:properties: API on NSImage to encode it into |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm creating a desktop only POC project (Windows, macOS and Linux) where I have to access several native resources.
I need to get the native system icon for the files types on each platform's.
In
net8.0-windows
project this is handled withVanara.Windows.Shell
and #5908 (comment) extension method.In
net8.0-macos
theNSWorkspace
is accessible but would have to convertNSImage
toAvalonia.Media.Imaging.Bitmap
.Any way to get this?
Beta Was this translation helpful? Give feedback.
All reactions