I need to retrieve some image data with openfl legacy.
With lime, I would do:
var img = Assets.getImage(url);
var wanted = img.data;
with nme:
var img = Assets.getBitmapData(url);
var wanted = new UInt8Array(nme.display.BitmapData.getRGBAPixels(img));
But with openfl, I don’t know how to achieve it as openfl do not have any Image class (unlike lime) and its BitmapDataclass do not have a getRGBAPixels() function either
If i am asking this, this is because it do not seem to be possible to access lime from openfl legacy anymore (when I compile with the -Dlegacy flag, the compiler do not enter into #if lime conditionnal flags and do not recognize any lime class anymore (whereas it was working with previous versions of lime if I am not mistaken))