AMT Datasouth 600 manual 72 68 moveto 144 68 lineto 30 30 moveto 258 30 lineto 258 258 lineto

Models: 600

1 89
Download 89 pages 34.83 Kb
Page 48
Image 48
Printing a Box

Printing a Box

Label Output

PALTM Command Sequences

1 "

Hello World!

1 "

/Sans12.00pt findfont

12scalefont setfont

7272 moveto (Hello World!) show

7268 moveto

14468 lineto

3030 moveto

25830 lineto

258258 lineto

30258 lineto closepath

2setlinewidth stroke

1_showpages

Purpose: Demonstrate the drawing of a rectangular box. This example builds on the previous example by drawing a frame around the label. A 4” x 4” (288 points x 288 points) label is used in this example. The frame will be placed within 30 points of the edge of the label.

moveto - Position the drawing cursor at the desired location

This example assumes a 4” x 4” label (288 points x 288 points). A frame is drawn by moving to the starting point with the moveto operator.

lineto - Set the dimensions for the line

Forms three sides of the box with three separate lineto operators.

closepath - Close the shape

A box is drawn by drawing 3 sides of the box with the lineto operator followed by closepath, which closes the box by drawing the last line. It is important to use this operator to close a shape since the imaging algorithms may or may not actually close the shape due to rounding errors in the algorithm.

setlinewidth - Set the width of the lines

The width is set in points. In this example, the line width is set to 2 points. The line width value will remain the effective value for all lines until changed.

Fastmark 600 Series User's Guide

48

Page 48
Image 48
AMT Datasouth 600 72 68 moveto 144 68 lineto 30 30 moveto 258 30 lineto 258 258 lineto, Hello World, scalefont setfont