| 7 | #include <iostream.h> |
| 8 | |
| 9 | int main(int argc, char **argv) |
| 10 | { |
| 11 | if (argc < 2) { |
| 12 | cout << "Please specify a filename." << endl; |
| 13 | return 1; |
| 14 | } |
| 15 | |
| 16 | ilImage Image(argv[1]); |
| 17 | |
| 18 | cout << Image.Width() << ' ' << Image.Height() << ' ' << (ILuint)Image.Bpp() << endl; |
| 19 | |
| 20 | ilEnable(IL_FILE_OVERWRITE); |
| 21 | |
| 22 | Image.Save("test.tga"); |
| 23 | |
| 24 | return 0; |
| 25 | } |
| 26 | #endif |
| 27 | |
| 28 |