Added tests for image reading

This commit is contained in:
Leonetienne
2022-03-06 12:08:26 +01:00
parent f279ffb50f
commit eb4fc0e964
11 changed files with 153 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#define BMPPP_BMP_H
#include <Eule/Vector2.h>
#include <Eule/Rect.h>
#include <vector>
#include <cstdint>
#include "Colormodes.h"
@@ -87,6 +88,9 @@ namespace Leonetienne::BmpPP {
//! Will swap two channels. Useful for, for example, easy BGR to RGB conversion.
void SwapChannels(const std::size_t& channel1, const std::size_t& channel2);
//! Will copy the specified rectangle-area, and return it as a new image
BMP Crop(const Eule::Rect& area);
private:
Eule::Vector2i size;
Colormode colormode;