| 4 | using namespace std; |
| 5 | |
| 6 | int main(int argc, char **argv) |
| 7 | { |
| 8 | if (argc < 2) { |
| 9 | cout << "Please specify a filename." << endl; |
| 10 | return 1; |
| 11 | } |
| 12 | |
| 13 | ilImage Image(argv[1]); |
| 14 | |
| 15 | cout << Image.Width() << 'x' << Image.Height() << '@' << (ILuint)Image.Bpp() << endl; |
| 16 | |
| 17 | ilEnable(IL_FILE_OVERWRITE); |
| 18 | |
| 19 | Image.Save("test.tga"); |
| 20 | |
| 21 | return 0; |
| 22 | } |
| 23 |