1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 11:07:46 +00:00

PixelPaint: Add ProjectLoader to abstract away opening of files

This new class will open and parse files (either images directly or .pp
project files) and one can get the parsed Image as well as other
information from it.

This patch removes a bunch of 'try_create_from..." methods from Image in
favor of using the ProjectLoader.

The only json_metadata that is available are Guides for now.
This commit is contained in:
Tobias Christiansen 2021-09-03 18:46:11 +02:00 committed by Andreas Kling
parent b3f53a0b5a
commit 508d563189
6 changed files with 142 additions and 115 deletions

View file

@ -30,6 +30,7 @@ set(SOURCES
PenTool.cpp
PickerTool.cpp
PixelPaintWindowGML.h
ProjectLoader.cpp
RectangleTool.cpp
RectangleSelectTool.cpp
Mask.cpp