mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
PixelPaint: Add Copy Merged
action
This allows the user to copy the merged bitmap (all visible layers).
This commit is contained in:
parent
65d52467f4
commit
6910cbc075
3 changed files with 32 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
namespace PixelPaint {
|
||||
|
||||
class Layer;
|
||||
class Selection;
|
||||
|
||||
class ImageClient {
|
||||
public:
|
||||
|
@ -53,6 +54,7 @@ public:
|
|||
|
||||
// This generates a new Bitmap with the final image (all layers composed according to their attributes.)
|
||||
RefPtr<Gfx::Bitmap> try_compose_bitmap(Gfx::BitmapFormat format) const;
|
||||
RefPtr<Gfx::Bitmap> try_copy_bitmap(Selection const&) const;
|
||||
|
||||
size_t layer_count() const { return m_layers.size(); }
|
||||
Layer const& layer(size_t index) const { return m_layers.at(index); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue