Construct juce::Image from raw ARGB bytes


#1

I am looking for something like 

Image img = Image::create(int x, int y, ARGB* pixels, uint pixelsLength, bool topToBottom);

that would allow me to create image from raw ARGB buffer. 

I suspect that population through BitmapData::getLinePointer, etc. is the only option, correct? 


#2

Yes, the Image::BitmapData class gives you direct access to the pixels. I guess a function that does what you need could be done in a few lines of code using BitmapData, but it's not something I've ever added.


#3

Thanks