From 5e79604c7e76742ef47ee6503acbfcdf0db21ba1 Mon Sep 17 00:00:00 2001 From: charlie barto Date: Sat, 8 Mar 2014 20:21:50 -0500 Subject: initial commit --- tests/BasicTest.nim | 10 ++++++++++ tests/OwlAlpha.png | Bin 0 -> 1795689 bytes 2 files changed, 10 insertions(+) create mode 100644 tests/BasicTest.nim create mode 100644 tests/OwlAlpha.png (limited to 'tests') 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() diff --git a/tests/OwlAlpha.png b/tests/OwlAlpha.png new file mode 100644 index 0000000..409b805 Binary files /dev/null and b/tests/OwlAlpha.png differ -- cgit v1.2.3