mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-11 04:38:59 +01:00
22 lines
403 B
C++
22 lines
403 B
C++
// run './waf --fip' to build this one
|
|
|
|
#include <iostream>
|
|
#include "FreeImagePlus.h"
|
|
|
|
int main() {
|
|
|
|
#if defined(FREEIMAGE_LIB) || !defined(WIN32)
|
|
FreeImage_Initialise();
|
|
#endif
|
|
|
|
fipImage img;
|
|
img.load("img.png");
|
|
std::cout << img.getWidth() << "x" << img.getHeight() << std::endl;
|
|
|
|
#if defined(FREEIMAGE_LIB) || !defined(WIN32)
|
|
FreeImage_DeInitialise();
|
|
#endif
|
|
|
|
return 0;
|
|
}
|