diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-21 03:57:42 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-21 03:57:42 +0100 |
commit | 42755e98cf2ce7d10f1899051b63513d442f92ec (patch) | |
tree | e6fbe05808cea137bd26fc0e5ae17534354448f5 /SharedGraphics/PNGLoader.h | |
parent | ed2303e2d8f795a7c1bd597fed9f77afe526c228 (diff) | |
download | serenity-42755e98cf2ce7d10f1899051b63513d442f92ec.zip |
SharedGraphics: Implement a simple PNG decoder.
This is extremely unoptimized, but it does successfully load "folder32.png"
so it must be at least somewhat correct. :^)
Diffstat (limited to 'SharedGraphics/PNGLoader.h')
-rw-r--r-- | SharedGraphics/PNGLoader.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SharedGraphics/PNGLoader.h b/SharedGraphics/PNGLoader.h new file mode 100644 index 0000000000..d4e7c0ef7f --- /dev/null +++ b/SharedGraphics/PNGLoader.h @@ -0,0 +1,5 @@ +#pragma once + +#include <SharedGraphics/GraphicsBitmap.h> + +RetainPtr<GraphicsBitmap> load_png(const String& path); |