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

PixelPaint: Use ErrorOr<T> for Image::try_compose_bitmap()

This commit is contained in:
Andreas Kling 2021-11-07 02:23:04 +01:00
parent 77fd4625b5
commit 9268ed9605
2 changed files with 8 additions and 14 deletions

View file

@ -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(); }