summaryrefslogtreecommitdiff
path: root/tests/BasicTest.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/BasicTest.nim')
-rw-r--r--tests/BasicTest.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/BasicTest.nim b/tests/BasicTest.nim
new file mode 100644
index 0000000..6fd69ba
--- /dev/null
+++ b/tests/BasicTest.nim
@@ -0,0 +1,10 @@
+import FreeImage
+
+when isMainModule:
+ proc main() =
+ var bitmap = FreeImage_Load(FIF_PNG, "OwlAlpha.png", PNG_DEFAULT)
+ var info = FreeImage_GetInfoHeader(bitmap)
+ echo repr(info)
+ FreeImage_Unload(bitmap)
+
+ main()