
Я пробовал:
Код: Выделить всё
std::ofstream ofs("./image.JPG", std::ios::out | std::ios::binary);
for (unsigned i = 0; i < width * height; ++i) {
ofs
Подробнее здесь: [url]https://stackoverflow.com/questions/22772099/raw-rgb-values-to-jpeg[/url]
Код: Выделить всё
std::ofstream ofs("./image.JPG", std::ios::out | std::ios::binary);
for (unsigned i = 0; i < width * height; ++i) {
ofs
Подробнее здесь: [url]https://stackoverflow.com/questions/22772099/raw-rgb-values-to-jpeg[/url]