- Timestamp:
- May 18, 2007, 10:10:41 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/opihi/cmd.data/jpeg.c
r13391 r13434 22 22 IsPNG = TRUE; 23 23 } 24 if (!strcmp (argv[0], "png")) IsPNG = TRUE; 25 if (!strcmp (argv[0], "ppm")) IsPPM = TRUE; 24 26 25 27 /* file name */ … … 38 40 remove_argument (N, &argc, argv); 39 41 } 40 /* need to figure out what this implies 42 43 /* XXX output png / jpeg needs to include both graph and image 44 if available. this is a poor mix of data representations 45 (png for image / jpeg for plots) 41 46 if ((N = get_argument (argc, argv, "-g"))) { 42 remove_argument (N, &argc, argv);43 SetImageDevice (FALSE);44 }45 47 if ((N = get_argument (argc, argv, "-i"))) { 46 remove_argument (N, &argc, argv);47 SetImageDevice (TRUE);48 }49 48 */ 50 49 51 50 if (!GetGraph (NULL, &kapa, name)) return (FALSE); 52 51 if (!IsPNG && !IsPPM) { 53 if (!filename[0]) strcpy (filename, "kapa. png");52 if (!filename[0]) strcpy (filename, "kapa.jpg"); 54 53 KiiJPEG (kapa, filename); 55 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
