forked from mirror/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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;
|
|
}
|