mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
PixelPaint: Support saving/loading masks to project file
This commit is contained in:
parent
0dd5f5672c
commit
51be2283f5
3 changed files with 17 additions and 2 deletions
|
@ -148,6 +148,12 @@ void Layer::set_content_bitmap(NonnullRefPtr<Gfx::Bitmap> bitmap)
|
|||
update_cached_bitmap();
|
||||
}
|
||||
|
||||
void Layer::set_mask_bitmap(NonnullRefPtr<Gfx::Bitmap> bitmap)
|
||||
{
|
||||
m_mask_bitmap = move(bitmap);
|
||||
update_cached_bitmap();
|
||||
}
|
||||
|
||||
void Layer::update_cached_bitmap()
|
||||
{
|
||||
if (!is_masked()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue