mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 09:59:44 +00:00
feat: autoresize (extend/shrink) canvas element
This commit is contained in:
parent
b644a76904
commit
0d4838facf
7 changed files with 52 additions and 17 deletions
|
|
@ -36,6 +36,7 @@ public:
|
|||
void mulColor(const ImageData& other);
|
||||
void addColor(const glm::ivec4& color, int multiplier);
|
||||
void addColor(const ImageData& other, int multiplier);
|
||||
void extend(int newWidth, int newHeight);
|
||||
|
||||
std::unique_ptr<ImageData> cropped(int x, int y, int width, int height) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue