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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/playground/freeimage/fip.cpp

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;
}