Can't encode on (Fedora) Linux #3395
-
|
Hi, perhaps I'm doing something stupid, but I can't encode a SKBitmap to any format on Fedora Linux var bitmap = new SKBitmap(width, height);
using var ms = new MemoryStream();
bool result = bitmap.Encode(ms, SKEncodedImageFormat.Png, 100);The code above always fail no matter the format. Perhaps I'm missing a system library? |
Beta Was this translation helpful? Give feedback.
Answered by
MihaMarkic
Oct 23, 2025
Replies: 1 comment
-
|
Nevermind, height was 0 for a different reason and Encode simply returned false (or null SKData with other overload). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MihaMarkic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, height was 0 for a different reason and Encode simply returned false (or null SKData with other overload).