How to save an int32[] of Bgra32 data as a Png? #2978
Answered by JimBobSquarePants
JohnJScott asked this question in Q&A
-
It would seem to be something like this
.. but the cast to Bgra32[] is illegal. What is the recommendation? Cheers |
Beta Was this translation helpful? Give feedback.
Answered by JimBobSquarePants Sep 5, 2025
Replies: 1 comment
-
You could use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by JimBobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You could use
MemoryMarshal.Cast<TFrom,TTo>(ReadOnlySpan<TFrom>)
to do the cast.