mirror of
https://github.com/love2d/megasource.git
synced 2026-08-15 15:51:13 +02:00
24 lines
379 B
C++
24 lines
379 B
C++
#include <IL/devil_cpp_wrapper.hpp>
|
|
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (argc < 2) {
|
|
cout << "Please specify a filename." << endl;
|
|
return 1;
|
|
}
|
|
|
|
ilImage Image(argv[1]);
|
|
|
|
cout << Image.Width() << 'x' << Image.Height() << '@' << (ILuint)Image.Bpp() << endl;
|
|
|
|
ilEnable(IL_FILE_OVERWRITE);
|
|
|
|
Image.Save("test.tga");
|
|
|
|
return 0;
|
|
}
|
|
|