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.
20 lines
414 B
C++
20 lines
414 B
C++
#include <stdio.h>
|
|
#include "FreeImage.h"
|
|
|
|
int main() {
|
|
|
|
#if defined(FREEIMAGE_LIB) || !defined(WIN32)
|
|
FreeImage_Initialise(FALSE);
|
|
#endif
|
|
|
|
FIBITMAP* dib = FreeImage_Load(FIF_PNG, "img.png", PNG_DEFAULT);
|
|
printf("%dx%d", FreeImage_GetWidth(dib), FreeImage_GetHeight(dib));
|
|
FreeImage_Unload(dib);
|
|
|
|
#if defined(FREEIMAGE_LIB) || !defined(WIN32)
|
|
FreeImage_DeInitialise();
|
|
#endif
|
|
|
|
return 0;
|
|
}
|