mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-23 02:16:01 +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;
|
|
}
|