MGMT 1000 Lecture Notes - Lecture 13: Programming Language

23 views2 pages
MGMT 1000 Tutorial 13 Notes Lists of Procedures
Introduction
A page description is a list of procedures and statements that describe each of the
objects on a page.
PostScript embeds page descriptions within a programming language.
Thus, an image consists of a program written in the PostScript language.
The programming language is stored in ASCII or Unicode text form.
Thus, PostScript files can be stored and transmitted as any other text file.
An interpreter program in the computer or output device reads the PostScript language
statements and uses them to create pages that can then be printed or displayed.
The interpreter produces an image that is the same, regardless of the device it is
displayed or printed on.
Compensation for differences in device resolution and pixel shape is built into the
interpreter.
PostScript provides a large library of functions that facilitate every aspect of an object-
based image.
There are functions that draw straight lines, Bezier curves, and arcs of a circle, functions
that join simple objects into more complex ones, translate an object to a different
location on the page, scale or distort an object, rotate an object, and create the mirror
image of an object
Functions that fill an object with a pattern, or adjust the width and color of a line.
There are methods for building and calling procedures, and IF-THEN-ELSE and loop
programming structures.
The list goes on and on.
A simple program that draws a pair of shaded and concentric circles within a rectangle
in the middle of an 81/2 × 11-inch page is shown.
This example shows a number of features of the language.
The page is laid out as an X, Y grid, with the origin at the lower left corner.
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents