mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
PixelPaint: Use ErrorOr<T> for Image::try_compose_bitmap()
This commit is contained in:
parent
77fd4625b5
commit
9268ed9605
2 changed files with 8 additions and 14 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
static RefPtr<Gfx::Bitmap> try_decode_bitmap(const ReadonlyBytes& bitmap_data);
|
||||
|
||||
// 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;
|
||||
ErrorOr<NonnullRefPtr<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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue