diff --git a/test/freeimage.cpp b/test/freeimage.cpp new file mode 100644 index 00000000..a2ac838a --- /dev/null +++ b/test/freeimage.cpp @@ -0,0 +1,14 @@ +#include + +int main() +{ + FreeImage_Initialise(0); + + FIBITMAP* bitmap = FreeImage_Allocate(64, 64, 32); + AEDI_EXPECT(bitmap != nullptr); + + AEDI_EXPECT(FreeImage_HasPixels(bitmap) == TRUE); + FreeImage_Unload(bitmap); + + FreeImage_DeInitialise(); +}