Код: Выделить всё
int width, height, numComponents;
unsigned char* imgData = stbi_load(fileName.c_str(), &width, &height, &numComponents, 4);
if (imgData == NULL)
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/46020364/stbi-load-cannot-load-image[/url]