![]() |
CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Trim the input raster to the available media. More...
Data Fields | |
| unsigned | raster_width |
| unsigned | raster_height |
| unsigned | medium_width |
| unsigned | medium_height |
| double | medium_width_mm |
| double | medium_height_mm |
| unsigned | top_skip |
| unsigned | top_offset |
| unsigned | top_keep |
| unsigned | left_skip |
| unsigned | left_offset |
| unsigned | left_keep |
If the input raster is wider or smaller than the physical print width of the QL printer, we need to trim it before sending it to the printer.
Horizontal:
Wider raster image:
|<--------------------------- printable area width ----------------------------->|
|<------------------------------ media width ----------------------------------->|
|<--------------------------------- wider input raster ---------------------------------->|
|<--->|< "left_skip"
|<------------------------------------------------------------------------------>| < "left_keep"
Smaller raster image:
|<--------------------------- printable area width ----------------------------->|
|<------------------------------ media width ----------------------------------->|
|<-------------- smaller input raster ---------------->|
|<----->|< "left_offset"
|<---------------------------------------------------->| < "left_keep"left_offset is based on required hardware margins.
Vertical:
On a continous length tape there is no vertical limit to consider.
| unsigned raster_width |
Input raster dot count per line
| unsigned raster_height |
Input raster line count
| unsigned medium_width |
Output medium dot count per line, always equal to or smaller than the printable area
| unsigned medium_height |
Output medium line count
| double medium_width_mm |
Output medium width [mm]
| double medium_height_mm |
Output medium length [mm]
| unsigned top_skip |
Skip raster lines if the raster is higher than the medium
| unsigned top_offset |
Empty lines on the medium before the top raster line
| unsigned top_keep |
Use raster lines (below top_skip)
| unsigned left_skip |
Skip raster dots from the left border if the raster is wider than the medium
| unsigned left_offset |
Empty dots on the medium before the left dot
| unsigned left_keep |
Use raster dots (right of left_skip)