add freeimage test

This commit is contained in:
alexey.lysiuk 2021-06-23 10:19:35 +03:00
parent 7096683d24
commit c18ecef969

14
test/freeimage.cpp Normal file
View file

@ -0,0 +1,14 @@
#include <FreeImage.h>
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();
}