diff options
author | Andrew Smith <andrew@alsmith.net> | 2022-03-08 06:00:04 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-23 00:12:19 +0200 |
commit | 02399d4775037d87231db05a887ecb093422e719 (patch) | |
tree | 2f0962546ed81286a2f09f8fcff6b2807dcc3938 /Userland/Applications/PixelPaint/Layer.h | |
parent | abaecb878b44a7f56fc1d8e1eb6391739f7389ea (diff) | |
download | serenity-02399d4775037d87231db05a887ecb093422e719.zip |
PixelPaint: Add Image>Resize Image... dialog. (Front end)
Diffstat (limited to 'Userland/Applications/PixelPaint/Layer.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Layer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Layer.h b/Userland/Applications/PixelPaint/Layer.h index 55a92d1ae0..408fee937d 100644 --- a/Userland/Applications/PixelPaint/Layer.h +++ b/Userland/Applications/PixelPaint/Layer.h @@ -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); |