Skip to main content
Skip table of contents

(v13) Scaling in FilmOverlay

This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP.

If Scaling is set in the page device (for example, by setting scale values in the Page Setup dialog box), this scaling is applied to all pages imaged on a flat through HqnImpose2. It is not applied to margins set using the FilmLeft, FilmTop, and other keys, because it is assumed that any significant scaling has been performed in order to produce larger or smaller output, and that control strips should not be affected by the requested scaling. Scaling used to adjust for anamorphic variations in output (for example in flexography) is assumed to be close enough to 1:1 that the small distortions that this introduces into control strips is not significant.

The scaling effect is automatically removed from all marks drawn using the Marks array approach, but programmers should be aware that it is not automatically removed when using a FilmOverlay procedure. If you wish to place marks inside a specified margin using FilmOverlay then you should scale by the reciprocal of ScaleX and ScaleY before drawing. Positioning relative to the height or width of the flat also requires that the FilmWidth is multiplied by ScaleX and FilmHeight is multiplied by ScaleY.

The following example procedure draws a small cross at the center of the flat:


TEXT
              /FilmOverlay { gsave
              1 RegisterColor
              1. ScaleX div 1. ScaleY div scale
              0.5 setlinewidth
                        FilmWidth ScaleX mul 2. div FilmHeight ScaleY mul 2. div translate
              -10 0 moveto 10 0 lineto 0 -10 moveto 0 10 lineto stroke
              grestore
            } bind
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.