1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:07:34 +00:00

PixelPaint: Allow layer to "scale" location when resizing

This commit is contained in:
Andrew Smith 2022-03-18 16:29:29 -05:00 committed by Andreas Kling
parent 02399d4775
commit bccf0a9346
3 changed files with 37 additions and 13 deletions

View file

@ -58,6 +58,8 @@ public:
void rotate(Gfx::RotationDirection direction);
void crop(Gfx::IntRect const& rect);
void resize(Gfx::IntSize const& new_size, Gfx::Painter::ScalingMode scaling_mode);
void resize(Gfx::IntRect const& new_rect, Gfx::Painter::ScalingMode scaling_mode);
void resize(Gfx::IntSize const& new_size, Gfx::IntPoint const& new_location, Gfx::Painter::ScalingMode scaling_mode);
ErrorOr<void> try_set_bitmaps(NonnullRefPtr<Gfx::Bitmap> content, RefPtr<Gfx::Bitmap> mask);