From c18ecef969bf2a112de57651be56133e036b6512 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 23 Jun 2021 10:19:35 +0300 Subject: [PATCH] add freeimage test --- test/freeimage.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/freeimage.cpp 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(); +}