mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
PixelPaint: Guess image type based on its filename
We do this in ImageViewer so it understands TGA images; let's do it in PixelPaint as well :^)
This commit is contained in:
parent
e272f796ad
commit
1c19c2bc92
5 changed files with 13 additions and 9 deletions
|
@ -18,7 +18,7 @@ public:
|
|||
ProjectLoader() = default;
|
||||
~ProjectLoader() = default;
|
||||
|
||||
ErrorOr<void> load_from_file(NonnullOwnPtr<Core::File>);
|
||||
ErrorOr<void> load_from_file(StringView filename, NonnullOwnPtr<Core::File>);
|
||||
|
||||
bool is_raw_image() const { return m_is_raw_image; }
|
||||
RefPtr<Image> release_image() const { return move(m_image); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue