summaryrefslogtreecommitdiff
path: root/SharedGraphics/PNGLoader.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-21 03:57:42 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-21 03:57:42 +0100
commit42755e98cf2ce7d10f1899051b63513d442f92ec (patch)
treee6fbe05808cea137bd26fc0e5ae17534354448f5 /SharedGraphics/PNGLoader.h
parented2303e2d8f795a7c1bd597fed9f77afe526c228 (diff)
downloadserenity-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.h5
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);