123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #include "sys-defines.h"
- #include "extern.h"
- bool
- _pl_f_end_page (S___(Plotter *_plotter))
- {
- int i;
- const char *units;
- plOutbuf *fig_header;
-
-
- fig_header = _new_outbuf ();
-
- units = (_plotter->data->page_data->metric ? "Metric" : "Inches");
- sprintf (fig_header->point,
- "#FIG 3.2\n%s\n%s\n%s\n%s\n%.2f\n%s\n%d\n%d %d\n",
- "Portrait",
- "Flush Left",
- units,
- _plotter->data->page_data->fig_name,
- 100.00,
- "Single",
- -2,
- IROUND(FIG_UNITS_PER_INCH),
- 2
- );
- _update_buffer (fig_header);
-
-
- for (i = 0; i < _plotter->fig_num_usercolors; i++)
- {
- sprintf (fig_header->point,
- "#COLOR\n%d %d #%06lx\n",
- 0,
- FIG_USER_COLOR_MIN + i,
- _plotter->fig_usercolors[i]
- );
- _update_buffer (fig_header);
- }
-
-
- _plotter->data->page->header = fig_header;
-
- return true;
- }
|