mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
PixelPaint: Move saving a project from Image into ImageEditor
The ImageEditor knows more about the image than Image itself. So to save a project with all the information known to the program about an image it's logical that ImageEditor performs that task rather than the Image. There isn't any additional data added yet, but now there's the possibility to do so.
This commit is contained in:
parent
60e526fdd2
commit
e867e4b84b
5 changed files with 21 additions and 19 deletions
|
@ -68,7 +68,6 @@ public:
|
|||
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect) const;
|
||||
|
||||
void serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const;
|
||||
Result<void, String> write_to_fd_and_close(int fd) const;
|
||||
Result<void, String> write_to_file(String const& file_path) const;
|
||||
Result<void, String> export_bmp_to_fd_and_close(int fd, bool preserve_alpha_channel);
|
||||
Result<void, String> export_png_to_fd_and_close(int fd, bool preserve_alpha_channel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue