Hello.
I have in Binaries many images, all of them I want to add to Array.
I know how to do it if I use it like this:
files.add(ImageFileFormat::loadFrom(BinaryData::img0_png, BinaryData::img0_pngSize));
But how can I do it from a for loop? Something in that way?
for(auto a=0; a<=90; a++){
auto name = "img" + String(a) + "_png";
for (int i = 0; i < BinaryData::namedResourceListSize; ++i){
auto namedResourse = BinaryData::namedResourceList [I];
auto fileName = String::fromUTF8 (namedResourse);
if (fileName.compare(name)==0){
files.add(ImageFileFormat::loadFrom(namedResourse, size));
break;
}
}
}
Is it a correct way? How can I get SIZE of binary?
