Replies: 1 comment
-
Since 2.0+ image buffers are not guaranteed to be contiguous by default, you need to enforce it: |
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
-
Hello again!
Recently got back to my old project that used ImageSharp 1.0 and decided to update to the newest version (3.0) and found out that it has drastically changed it's API and how images are represented in memory. And currently I don't see how to glue it together with OpenGL.
So in previous version to get a pointer to underlying block of memory and load it to OpenGL texture, I used code like that:
As I understand, it's no longer possible to extract a span or pointer to pixels without copying to some intermediate array?
Beta Was this translation helpful? Give feedback.
All reactions