The Usage of Program raw2ps.c raw2ps is a program which converts a free-form ascii file of unsigned characters (pixel values between 0 and 255) into a.

Slides:



Advertisements
Similar presentations
Creating *Newsletters in Microsoft Word For this lesson (?) you will create a newsletter! *This is only ONE suggestion for an easy newsletter!
Advertisements

Chapter 3 – Web Design Tables & Page Layout
BMP Hide ‘n’ Seek What is BMP Hide ‘n’ Seek ? –It’s a tool that lets you hide text messages in BMP files without much visible change in the picture. –Change.
Printing Graphics An introduction to capabilities of the HP Printer Control Language.
COMPREHENSIVE Word Tutorial 9 Creating On-Screen Forms Using Advanced Table Techniques.
Foundation Level Course
Copyright 2003, Paradigm Publishing Inc. CHAPTER 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Print Preview Formatting Column Widths Row Heights Format Numbers.
Computer Information Technology – Section 4-3 Some text and examples used with permission from:
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
Information Representation
Chapter 7 Programming with DOS and BIOS Function Calls Objectives: The use of DOS and BIOS function call How to read the PC’s keyboard How to send text.
Introducing Web Tables
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Database-Driven Web Sites, Second Edition1 Chapter 2 INTRODUCTION TO HTML.
Guide to Linux Installation and Administration, 2e1 Chapter 12 Printing in Linux.
CSCI 330 T HE UNIX S YSTEM File operations. OPERATIONS ON REGULAR FILES 2 CSCI The UNIX System Create Edit Display Contents Display Contents Print.
Format a Worksheet for Printing Lesson 3 - Microsoft Excel 2010.
ASCII & Gray Codes.
Using HTML to Create Tables in Web pages Connie Lindsey November 2005.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Lesson 5: Using Tables.
Word Processing ADE100- Computer Literacy Lecture 12.
FRAMES. With frames, we can display more than one HTML document in the same browser window. Each HTML document is called the same browser window. Each.
Peripherals The term peripherals refers to all hardware devices that are attached to your computer and are controlled by your computer system Peripherals.
First Screen : First window form will always remain open, for the user to select menu options. 1.
ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.
Objectives Differentiate between raster scan display and random scan display.
An Introduction to R graphics Cody Chiuzan Division of Biostatistics and Epidemiology Computing for Research I, 2012.
1 Planning and Laying Out Frames Sketch the frame structure on paper before writing the HTML code two rows two columns.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Format a Worksheet for Printing Lesson 3 - Microsoft Excel 2013.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Chapter 5 Working with Multiple Worksheets and Workbooks
1 Guide to Oracle10G CHAPTER 7: Creating Database Reports 7.
How to Generate an Artificial Book. Generate a page of 14-segment Using function GenerateNPage() to generate an image file contain alphabets of 14-segment.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Format a Worksheet for Printing Lesson 3 - Microsoft Excel 2010.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
1 HTML Frames
Web Page Tables GMU-Teaching with Technology. Table Characteristics: Looks like a news page Contains columns and rows.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
Binary  Decimal. Review Each binary digit (bit) is a power of 2 Place the bits, multiply, and add Example:
Informatics Computer School CS114 Web Publishing HTML Lesson 3.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Name Enrolment no.: Dhruti Desai Khushboo Desai Sneha Gangwani Rajul Shah
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Submitted By: Shantam Dubey Website:
Submitted by: DRPU Software Team Site:
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
Text and Images Key Revision Points.
Converting a Print File
1.5 Matricies.
Format a Worksheet for Printing
Learning Objectives • Dynamic Input Line tool. • Coordinate systems.
Format a Worksheet for Printing
INFO/CSE 100, Spring 2005 Fluency in Information Technology
GRAPHICAL DATA EXCHANGE FORMATS .jpg .gif .tif.
Functions continued.
Lesson 5: HTML Tables.
Lesson 13 Working with Tables
Presentation transcript:

The Usage of Program raw2ps.c raw2ps is a program which converts a free-form ascii file of unsigned characters (pixel values between 0 and 255) into a PostScript program which produces a printed image when printed on a PostScript printer such as an HP LaserJet. The user has a complete control over picture placement and size. By default, gray levels near zero print darkly, and gray levels near 255 are light. The user can also specify the PostScript code not to include a print command (this is useful if multiple pictures on one page are desired).

Notes ˙This program expects only unsigned characters (pixel values) in the input file. Any header information should be stripped off of the image file. If the gray values are in binary format, they should be converted. This restriction was imposed to keep things as general as possible. Source Code — raw2ps.c which will be announced in class.

Commands for using raw2ps ♣ From ascii to PostScript generator for image data Syntax raw2ps file rows cols dx dy sizex sizey | lpr [-Plw] For multiple images: raw2ps file1 rows1 cols1 dx1 dy1 sizex1 sizey1 + > tmp raw2ps file2 rows2 cols2 dx2 dy2 sizex2 sizey2 + >>tmp... raw2ps filen rowsn colsn dxn dyn sizexn sizeyn >>tmp lpr [-Plw] tmp

Input Parameter Description rowsj number of rows in the image matrix (no default) colsj number of columns in the image matrix (no default) dxj horizontal position of lower left corner of image wrt. lower left corner of page (current point in TeX mode) (in inches) dyj vertical position of lower left corner of image wrt. lower left corner of page (current point in TeX mode) (in inches) sizexj horizontal size of the printed image sizeyj vertical size of the printed image

Examples of Image Printing gcc raw2ps.c –lm –o raw2ps raw2ps mandrill.raw >h0.ps raw2ps scene.raw >>h0.ps raw2ps texture.raw >>h0.ps raw2ps fingerprint.raw >>h0.ps raw2ps ladyface.raw >>h0.ps raw2ps array150.raw >>h0.ps lpr [-Plw] h0.ps