mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-22 00:50:45 +03:00
26 lines
415 B
C++
26 lines
415 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <vector>
|
|
|
|
namespace progressia {
|
|
namespace main {
|
|
|
|
class Image {
|
|
public:
|
|
using Byte = unsigned char;
|
|
|
|
std::size_t width;
|
|
std::size_t height;
|
|
std::vector<Byte> data;
|
|
|
|
std::size_t getSize() const;
|
|
const Byte *getData() const;
|
|
Byte *getData();
|
|
};
|
|
|
|
Image loadImage(const std::filesystem::path &);
|
|
|
|
} // namespace main
|
|
} // namespace progressia
|