Implemented Crop method, and added tests

This commit is contained in:
Leonetienne
2022-03-06 17:42:28 +01:00
parent d5a1e4f93f
commit 2f0d39a797
10 changed files with 143 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ namespace Leonetienne::BmpPP {
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) const;
BMP Crop(const Eule::Vector2i& topleft, const Eule::Vector2i& size) const;
//! Will fill a specific channel with a value
void FillChannel(const std::size_t& channel, const std::uint8_t value);