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:
parent
216385084b
commit
d8474d80f2
4 changed files with 94 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue