std::vector<Color> data;
std::vector<argb_t> CustomizableImage::GetRGBAData() const
{
std::vector<argb_t> temp(data.size());
auto index = 0;
for (auto &color : data) // ??
{
auto col = color.GetARGB();
std::swap(*(((uint8_t*)&col) + 0), *(((uint8_t*)&col) + 2)); //flip R/B
temp[index++] = col;
}
return temp;
}