Thread View: comp.lang.postscript
3 messages
3 total messages
Started by Gautham
Tue, 15 Dec 1992 15:42
Printing Text+Image file
Author: Gautham
Date: Tue, 15 Dec 1992 15:42
Date: Tue, 15 Dec 1992 15:42
58 lines
1601 bytes
1601 bytes
HELP..
We have this Postscript code, which we use to print
Raw image files <Gray Scale>, we would like to know what modification/ code
we have to do to include a <one line description> of an Image.
**************************************************************
%!
% The image file is of the format: 128X128
/inch {72 mul } def
/width 128 def
/height 128 def
/finalwidth 3 inch def
/picstr width string def
/dopic
{gsave
width height 8
[width 0 0 height neg 0 height]
{currentfile picstr readhexstring pop}
image
grestore
}def
%----------------------------------------------
85 85 translate
finalwidth
finalwidth width div height mul scale
dopic
< 128*128 Hex Values >
showpage
**************************************************************
We tried including the following code with the above
50 650 moveto
(Description) show
We are using "pageview" on SPARC to view the result, and we are
able to view the description + image.
The problem we face is when we try to print the same, we do not
get any output..!!..
thanks in advance.
gautham gvm@pandora.cs.wayne.edu
sriram ras@pandora.cs.wayne.edu
Re: Printing Text+Image file
Author: Andre Beck
Date: Tue, 15 Dec 1992 18:06
Date: Tue, 15 Dec 1992 18:06
19 lines
1088 bytes
1088 bytes
May be you forgot to load a font first: /Times-Roman 24 selectfont 50 650 moveto (Description) show [...] image stuff showpage -- ,------------------------+---------------------------------------------. | Andre' Beck (ABPSoft) | TCP/IP-Mail: beck@freia.inf.tu-dresden.de | | HG R 142 | VMS : hermes::beck | +------------------------+---------------------------------------------+ | Windows is the best placebo against MS-DOOF headaches ! | `----------------------------------------------------------------------'
Re: Printing Text+Image file
Author: Henry McGilton
Date: Tue, 15 Dec 1992 20:53
Date: Tue, 15 Dec 1992 20:53
18 lines
1130 bytes
1130 bytes
In article <1992Dec15.154200.23690@cs.wayne.edu> writes:
*
* We tried including the following code with the above
*
* 50 650 moveto
* (Description) show
* We are using "pageview" on SPARC to view the result, and we are
* able to view the description + image.
* The problem we face is when we try to print the same, we do not
* get any output..!!..
You need to establish a font before setting text. PageView uses
NeWS which has a default font established. Do something like
/Courier-Bold findfont 14 scalefont setfont
50 650 moveto
(Description) show
Alter the font selection and size to taste.
........ Henry
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads