1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:17:45 +00:00

PixelPaint: Add Image>Resize Image... dialog. (Front end)

This commit is contained in:
Andrew Smith 2022-03-08 06:00:04 -06:00 committed by Andreas Kling
parent abaecb878b
commit 02399d4775
11 changed files with 302 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#include <AK/String.h>
#include <AK/Weakable.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Painter.h>
namespace PixelPaint {
@ -56,6 +57,7 @@ public:
void flip(Gfx::Orientation orientation);
void rotate(Gfx::RotationDirection direction);
void crop(Gfx::IntRect const& rect);
void resize(Gfx::IntSize const& new_size, Gfx::Painter::ScalingMode scaling_mode);
ErrorOr<void> try_set_bitmaps(NonnullRefPtr<Gfx::Bitmap> content, RefPtr<Gfx::Bitmap> mask);