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

PixelPaint: Save and load to and from disk

Store a PixelPaint project in a .pp file (as there doesn't seem to
be any real standard on this). It's a very simple json file that
contains the bitmap as a base64 encoded bmp.
This commit is contained in:
BenJilks 2020-10-18 14:44:33 +00:00 committed by Andreas Kling
parent 216385084b
commit d8474d80f2
4 changed files with 94 additions and 4 deletions

View file

@ -53,6 +53,7 @@ void ImageEditor::set_image(RefPtr<Image> image)
m_image = move(image);
m_history.reset(*m_image);
update();
image_did_modify_layer_stack();
if (m_image)
m_image->add_client(*this);