CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Required adaptions from the document's content to the raster content. More...
Data Fields | |
struct caps_rect | source_sz |
struct caps_area | source_area |
int | source_area_used |
struct caps_rect | source_print_sz |
double | scale_x |
double | scale_y |
int | print_rotation |
double | raster_resolution_x |
double | raster_resolution_y |
enum caps_colour_format | raster_cf |
struct caps_rect | target_sz |
struct caps_area | target_area |
struct caps_rect | target_area_sz |
double | raster_offset_x |
double | raster_offset_y |
The information herein is used to calculate the required adaptions from the document's content to the raster content.
At the end all this information is used to setup the caps_rstr_raster in order to reconstruct the line data the printer driver needs.
How the rasterizer should extract the content from its source document into the target raster.
print_rotation is '-90' (in this example)
struct caps_rect source_sz |
Document's intendet page size, in [pts]
struct caps_area source_area |
Document's content crop area. This area is taken from inside source_sz and should be used to create the final raster for printing, in [pts]
This member is always filled. If it defines a different area than source_sz, additionally source_area_used is not '0'
int source_area_used |
'0' if you can ignore source_area. Not '0', source_area should be used
struct caps_rect source_print_sz |
Document's crop area as a size, for convinience, same as in source_area, in [pts] TODO irgendwie überflüssig
double scale_x |
Scale the source_sz caps_rect::width by this factor
double scale_y |
Scale the source_sz caps_rect::length by this factor TODO only one factor is required!
int print_rotation |
double raster_resolution_x |
Horizontal resolution, in relation to target_sz and its orientation, in [DPI]
double raster_resolution_y |
Vertical resolution, in relation to target_sz and its orientation, in [DPI]
enum caps_colour_format raster_cf |
Colour format the raster should have
struct caps_rect target_sz |
Target print medium's size [pts]
struct caps_area target_area |
Print device's imageable area on the target print medium in [pts], defines an area inside target_sz
struct caps_rect target_area_sz |
Print device's imageable area as a size, for convinience, same as in target_area, in [pts] TODO irgendwie überflüssig
double raster_offset_x |
Horizontal offset of the raster image on the medium (medium's left edge to the raster's left dot), in [pts]
double raster_offset_y |
Vertical offset of the raster image on the medium (medium's bottom up to the raster's bottom line), in [pts]