mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
PixelPaint: Display an error message if saving to PP file fails
This commit is contained in:
parent
fa7bb98b1e
commit
c333aec9f3
3 changed files with 17 additions and 10 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/NonnullRefPtrVector.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGUI/Command.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
|
@ -52,7 +53,7 @@ public:
|
|||
void restore_snapshot(Image const&);
|
||||
|
||||
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect);
|
||||
void save(String const& file_path) const;
|
||||
Result<void, String> write_to_file(String const& file_path) const;
|
||||
void export_bmp(String const& file_path);
|
||||
void export_png(String const& file_path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue