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

PixelPaint: Allow pasting a copied bitmap as a new layer :^)

This commit is contained in:
Andreas Kling 2020-09-05 16:53:51 +02:00
parent 00bdb74c84
commit 6aa7f59608
4 changed files with 35 additions and 2 deletions

View file

@ -45,6 +45,7 @@ class Layer
public:
static RefPtr<Layer> create_with_size(Image&, const Gfx::IntSize&, const String& name);
static RefPtr<Layer> create_with_bitmap(Image&, const Gfx::Bitmap&, const String& name);
~Layer() { }
@ -75,7 +76,8 @@ public:
void set_opacity_percent(int);
private:
explicit Layer(Image&, const Gfx::IntSize&, const String& name);
Layer(Image&, const Gfx::IntSize&, const String& name);
Layer(Image&, const Gfx::Bitmap&, const String& name);
Image& m_image;