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

Home » Public Forums » archive » OO postscript problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
OO postscript problem [message #11450] Tue, 14 April 1998 00:00
nospam is currently offline  nospam
Messages: 21
Registered: November 1997
Junior Member
I just sent the following request to support@rsinc.com, and I thought
that you people might have some insight as well. Thanks for any
asistance. My email address is stuart @ ll.mit.edu.


IDL> help, !version, /struct
** Structure !VERSION, 5 tags, length=40:
ARCH STRING 'mipseb'
OS STRING 'IRIX'
OS_FAMILY STRING 'unix'
RELEASE STRING '5.0.3'
BUILD_DATE STRING 'Nov 3 1997'

rock(76)% uname -a
IRIX64 rock 6.4 IP27


I have an object oriented graphics routine from which I'd like to get
postscript output. The postscript created seems to only be
monochrome, though. I use the RGB color model since my machine has
24-bit color. The following test program demonstrates the problem.
The window comes up with the expected colors, but the resulting
postscript is only in black and white.


oPrinter = obj_new('IDLgrPrinter', COLOR_MODEL=0)
oView =obj_new('IDLgrView')
oModel = obj_new('IDLgrModel')
oPolyg1 = obj_new('IDLgrPolyline', [1.0, 0.0, -1.0, 0.0, 1.0], $
[0.0, 1.0, 0.0, -1.0, 0.0], $
[0.0, 0.0, 0.0, 0.0, 0.0], $
COLOR=[255, 0, 0])
oPolyg2 = obj_new('IDLgrPolyline', [2.0, 0.0, -2.0, 0.0, 2.0], $
[0.0, 2.0, 0.0, -2.0, 0.0], $
[0.0, 0.0, 0.0, 0.0, 0.0], $
COLOR=[0, 0, 0])
oPolyg3 = obj_new('IDLgrPolyline', [3.0, 0.0, -3.0, 0.0, 3.0], $
[0.0, 3.0, 0.0, -3.0, 0.0], $
[0.0, 0.0, 0.0, 0.0, 0.0], $
COLOR=[0, 0, 255])
oModel->ADD, oPolyg1
oModel->ADD, oPolyg2
oModel->ADD, oPolyg3
oView->ADD, oModel

oWindow = obj_new('IDLgrWindow', DIMENSIONS=[200,200], RETAIN=0)

set_view, oView, oWindow
oWindow->Draw, oView

status = DIALOG_PRINTERSETUP(oPrinter)
if (status ne 0) then begin
oPrinter->Draw, oView
oPrinter->NewDocument
print, 'finished ps'
endif
end
--
Scott Stuart
stuart at ll mit edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: WwTimer Problem
Next Topic: JPL ephemeris

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

Current Time: Wed Oct 08 19:50:47 PDT 2025

Total time taken to generate the page: 0.01433 seconds