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

PixelPaint: Add "Apply Mask" action

This commit adds a "Apply Mask" action which merges the active layer
mask with the layer bitmap. The option is only displayed if the active
layer is masked.
This commit is contained in:
Tim Ledbetter 2023-02-25 06:46:18 +00:00 committed by Andreas Kling
parent 062c9efa88
commit 799d570afc
4 changed files with 20 additions and 0 deletions

View file

@ -47,6 +47,8 @@ public:
ErrorOr<void> create_mask();
void delete_mask();
void apply_mask();
Gfx::Bitmap& get_scratch_edited_bitmap();
Gfx::IntSize size() const { return content_bitmap().size(); }