implement regular image import

This commit is contained in:
2018-11-26 00:04:44 +01:00
parent 0685155a45
commit 09bccda2cd
4 changed files with 71 additions and 2 deletions

View File

@@ -24,6 +24,13 @@ public:
{
std::copy(data, data + size(), m_data.get());
}
void destroy()
{
width = 0;
height = 0;
comp = 0;
m_data.reset();
}
void flip();
void create() { m_data = std::make_unique<uint8_t[]>(size()); }
Image resize(int w, int h);