CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Fields
raster_adapt_preparation Struct Reference

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
 

Detailed Description

Note
Internally used only

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.

Document matches the print medium in size and orientation

Printing an A4 portrait document on an A4 portrait medium is straight forward

Document matches the print medium in size, but not its orientation

Printing an A4 landscape document on an A4 portrait medium with (auto) rotation

Document matches the print medium orientation, but is smaller than the print medium

Printing an A5 portrait document on an A4 portrait medium

Document has a different orientation and is smaller than the print medium

Printing an A5 landscape document on an A4 portrait medium

Document matches the print medium orientation, but is larger than the print medium

Printing an A3 portrait document on an A4 portrait medium

Document has a different orientation and is larger than the print medium

Printing an A3 landscape document on an A4 portrait medium

Field Documentation

◆ source_sz

struct caps_rect source_sz

Document's intendet page size, in [pts]

◆ source_area

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'

◆ source_area_used

int source_area_used

'0' if you can ignore source_area. Not '0', source_area should be used

◆ source_print_sz

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

◆ scale_x

double scale_x

Scale the source_sz caps_rect::width by this factor

◆ scale_y

double scale_y

Scale the source_sz caps_rect::length by this factor TODO only one factor is required!

◆ print_rotation

int print_rotation

Rotation from source_sz (view) to target_sz orientation, 0 °, +90 °, -90° or 180°

◆ raster_resolution_x

double raster_resolution_x

Horizontal resolution, in relation to target_sz and its orientation, in [DPI]

◆ raster_resolution_y

double raster_resolution_y

Vertical resolution, in relation to target_sz and its orientation, in [DPI]

◆ raster_cf

enum caps_colour_format raster_cf

Colour format the raster should have

◆ target_sz

struct caps_rect target_sz

Target print medium's size [pts]

◆ target_area

struct caps_area target_area

Print device's imageable area on the target print medium in [pts], defines an area inside target_sz

◆ target_area_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

◆ raster_offset_x

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]

◆ raster_offset_y

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]


The documentation for this struct was generated from the following file: