Equivalent of System.Drawing.Bitmap.LockBits() in ImageSharp #1264
-
I am working on fully replacing System.Drawing.Bitmap with ImageSharp in my solution. Is there an equivalent Bitmap.LockBits() in ImageSharp? I see some discussion from 2018, but I assume things have changed since then. Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Jul 8, 2020
Replies: 1 comment 3 replies
-
Yeah... 2018 is a long time ago in development years 😉 The pixel buffer in ImageSharp is laid out in memory in the manner dictated by the https://docs.sixlabors.com/articles/imagesharp/pixelbuffers.html |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
kikootwo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah... 2018 is a long time ago in development years 😉
The pixel buffer in ImageSharp is laid out in memory in the manner dictated by the
TPixel
generic parameter which allows fast lock free access to the buffer.https://docs.sixlabors.com/articles/imagesharp/pixelbuffers.html