New answers tagged wpf
I think your main problem here is that you continuously allocate new memory. Instead of creating small buffers for each pixel you want to read, why not create a buffer from all the image pixels and the read directly from there? Here's how I would modify your code. Disclaimer: I've never used WPF before, so take this with a grain of salt. I don't know how ...
Top 50 recent answers are included