Last change
on this file since 528 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
-
Property svn:keywords set to
Id
|
File size:
555 bytes
|
Rev | Line | |
---|
[49] | 1 | #include "pcxread.hpp" |
---|
| 2 | #include "palette.hpp" |
---|
| 3 | #include "image.hpp" |
---|
| 4 | #include <stdlib.h> |
---|
| 5 | |
---|
| 6 | main(int argc, char **argv) |
---|
| 7 | { |
---|
| 8 | image_init(); |
---|
| 9 | |
---|
| 10 | if (argc<3) |
---|
| 11 | { |
---|
| 12 | printf("Usage : %s xsize ysize filename [filename]\n",argv[0]); |
---|
| 13 | exit(0); |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | while (argc>3) |
---|
| 17 | { |
---|
| 18 | argc--; |
---|
| 19 | |
---|
| 20 | palette *pal; |
---|
| 21 | image *im=read_PCX(argv[argc],pal); |
---|
| 22 | |
---|
| 23 | im->resize(atoi(argv[1]),atoi(argv[2])); |
---|
| 24 | write_PCX(im,pal,argv[argc]); |
---|
| 25 | delete pal; |
---|
| 26 | printf(" %s\n",argv[argc]); |
---|
| 27 | |
---|
| 28 | clear_errors(); |
---|
| 29 | } |
---|
| 30 | image_uninit(); |
---|
| 31 | |
---|
| 32 | } |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.