An Introduction to HP-GL/2 Vector Graphics

Learning HP-GL/2

. 17-2

HP-GL/2 Commands and Syntax

. 17-3

Understanding HP-GL/2 Syntax

. 17-6

Notations Used to Express Syntax

. 17-8

Omitting Optional Parameters

. 17-9

Parameter Formats

17-10

Using HP-GL/2 With Programming Languages

17-13

Example:BASIC

17-13

Example:C Programming Language

17-14

The HP-GL/2 Coordinate System

17-15

HP-GL/2 & PCL Orientation Interactions

17-17

The Vector Graphics Limits

17-19

HP-GL/2 Units of Measure

17-20

Plotter Units

17-20

User-units

17-20

Pen Status and Location

17-21

Pen Status

17-21

Pen Location

17-23

Scaling

17-24

Absolute and Relative Pen Movement

17-25

The Picture Frame

Defining the Image Area(PCL Picture Frame). . . . . . . . . . . . . . . . . . . . . . . . . 18-2Automatically Adjusting Image Size to Fit the PCL Picture Frame . . . . . . . . . 18-3Creating a Page Size-Independent Plot . . . . . . . . . . . . . . . . . . . . . . . . . 18-3Typical HP-GL/2 PlotCommand Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-5Horizontal Picture Frame Size. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-8Example:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-9Vertical Picture Frame Size (Decipoints) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-9Example:To specify a vertical picture frame size of 6.5 inches, send: . . . 18-9Set Picture Frame Anchor Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-10Example:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-10HP-GL/2 Plot Horizontal Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-11Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-11HP-GL/2 Plot Vertical Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-12Example:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-12Enter HP-GL/2 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-13 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-13 Enter PCL Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-14 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-14 Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-15

EN

Contents-9

Page 21
Image 21
HP 5961-0509 17-2, 17-3, 17-9, Parameter Formats 17-10, ExampleBASIC 17-13 ExampleC Programming Language 17-14, 17-15