comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » converting a gif file to a postscipt file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
converting a gif file to a postscipt file [message #7429] Tue, 12 November 1996 00:00 Go to previous message
Tim Duman is currently offline  Tim Duman
Messages: 2
Registered: June 1996
Junior Member
I am trying to read in a gif file and write it out to a postscript file.
The reason being is that your color printer only prints postscript.

The program I am using is at the end of the posting. The problems is
when I right it out to the postscript file there is no color in the
file. Can anybody help with this problem

Thank,
Tim Duman


pro giftops, FILENAME=filename

;
; This program converts a gif image file to a postscript file.
;
; Created: Tim Duman, 11/12/96, University of Kansas
;
;

IF NOT KEYWORD_SET(filename) THEN READ,'Input name of file: ',filename

READ_GIF, filename, image, red, green, blue
SET_PLOT,'z'
TVLCT, red, green, blue
TV,image
newimage = TVRD()


strname = STR_SEP(filename,'.')

SET_PLOT,'ps'
DEVICE,FILENAME=strname(0)+'.ps',/COLOR,BITS=8
TVLCT,red,green,blue
TV,newimage
DEVICE,/CLOSE

END ; End program giftops.pro
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Writing mpeg from IDL (pseudo_to_true included)
Next Topic: IDL progs for looking at CZCS HDF files?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:56:07 PDT 2025

Total time taken to generate the page: 0.00279 seconds