/
ArtemNech
/
simpleOpenGL
Обзор
Документация
Войти
/
ArtemNech
/
simpleOpenGL
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
backend/ogl_sys/CImageFactory.h
30 строк
853 B
Artem Nechitaylenko
initial
16 май 2026, 12:48
16 май 2026, 12:48
0d3ac6c
Код
Авторство
О чём код?
// // Created by artem on 22.10.25. // #ifndef NYM_PROJECT_CIMAGEFACTORY_H #define NYM_PROJECT_CIMAGEFACTORY_H #include "image_element.h" #include "../graphics-units/NSize.h" namespace ngraph { class CImageFactory { public: // Просто создаем IImageElement из файла static IImageElement createFromPNG(const std::string& filepath); static IImageElement createFromSVG(const std::string& filepath); static bool scale_PNG(const double & zoom, IImageElement & element); static bool scale_SVG(const double & zoom, IImageElement & element); private: static std::vector<uint8_t> loadImageBytes(const std::string& filepath, ngraph::NSize & size); static std::vector<uint8_t> createTestImage(int width, int height); }; } // n #endif //NYM_PROJECT_CIMAGEFACTORY_H