CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Physical print medium description. More...
Data Fields | |
struct caps_rect | medium_sz |
struct caps_area | margins |
int | rotation_favoured |
enum caps_colour_format | cf |
double | resolution_horizontal |
double | resolution_vertical |
This information instructs the rasterizer how to prepare the raster to fit to the medium.
It's filled-in by the printing driver and used by the CAPS infrastructure.
The printing driver defines the medium's size, corresponding print margins and the required colour format of the raster data to be rasterized from the document.
struct caps_rect medium_sz |
Print medium size, in [pts]
The caps_rect::width component is always expected as the leading edge when printing.
struct caps_area margins |
Margins as printer's restrictions, in [pts] related to medium_sz
The caps_area::top member always defines the margin at the leading edge when printing, e.g. the four values are meant in the same orientation as medium_sz
int rotation_favoured |
The favoured rotation for the content to fit to the medium_sz orientation on demand. The rotation_favoured member must always be set. It must be one of:
And it should always be set for the currently loaded medium, e.g. the medium the following process will print to. The setting should be made regarding possible printer specific local user settings (in contrast to the generic rotation related printing parameters).
If nothing is known, FAV_ROTATION_NONE can be used instead. In this case the regular defaults are used.
enum caps_colour_format cf |
Dot colour format the raster should have
Keep in mind (e.g. be prepared), the corresponding document format rasterizer may not be able to support this colour format
double resolution_horizontal |
Horizontal rasterizing resolution [DPI]
double resolution_vertical |
Vertical rasterizing resolution [DPI]