Fast image init


#1

What is the fastest way to initialise an Image in JUCE form memory? I don’t think there is direct buffer access and all I can see right now is I have to iterate through the pixels and use setPixelAt(). I need this for grabbing a large image from a buffer that’s already prepared as ARGB or RGB uint8 data. I do a lot of maths on the buffer, which would be a pain doing it on the Image.

By the way, just came discovered the convolution class in JUCE, not the fastest, but very cool :slight_smile:


#2

Ooops, sorry, there IS buffer access through the lock / releasePixelDataReadWrite methods. JUCE is capable as always :slight_smile: