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

Home » Public Forums » archive » IDLgrPrinter and printing in color
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
IDLgrPrinter and printing in color [message #13752] Tue, 01 December 1998 00:00 Go to next message
Andre Csillaghy 510-6 is currently offline  Andre Csillaghy 510-6
Messages: 1
Registered: December 1998
Junior Member
Hi,

I want to print a IDLgrScene object using IDLgrPrinter on
{ sparc sunos unix 5.1 Apr 13 1998}

The scene contains several polygons with textures. Each polygon use a
specific color table (IDLgrPalette) for its texture.

I could only print (or save in a file) in black/white. I found no way to
print in color. Does somebody know how to print in color?

Any help will be appreciated.

-- Andre


--
Andre Csillaghy
Space Sciences Laboratory Tel 510-643-5146
University of California Fax 510-643-8302
Berkeley, CA 94720-7450 Web http://hessi.ssl.berkeley.edu/~csillag
Re: IDLgrPrinter [message #24296 is a reply to message #13752] Fri, 23 March 2001 07:54 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Hello (head hanging low),

I'm not sure if answering my own question indicates that I'm
clever or slow. I don't think I want to know.

The correct way to control the size of graphics for the printer
(and the clipboard) is to control the dimensions and location of
the View that is being rendered.

r = dialog_printersetup(myprinterobject)
if r = 1 then begin

myview->getproperty, location = wloc, dimensions = wdim
myprinterobject->getproperty, dimensions = pdim
;to get a square plot... choose the smaller of pdim
;reduce its size a bit to get a decent margin
viewdim = min(pdim) *0.8
;position the graphic by controlling the LOCATION
myview->setproperty, dimension = viewdim, location =
pdim*0.1
myprinterobject->newpage
myprinterobject->draw, myview
myprinterobject->newdocument
;restore the original view dimensions
myview->setproperty, location = wloc, dimensions = wdim
endif


So, it does seem to be a analogous to the controlling the
direct graphics device PRINTER.

Phew! Now, if I could just find that pointer I lost...

Ben


Ben Tupper wrote:

> Hello,
>
> How is the graphic plotting size/position controlled for the
> IDLgrPrinter object? I would like to output a 2d plot such
> that the axes are scaled isotropically. I have the view
> dimensioned properly for IDLgrWindow and IDLgrClipboard...
> but I don't see how to control the printer dimensions and
> offset.
>
> I am using the following steps to print:
>
> r = dialog_printersetup(myprinterobject)
> if r = 1 then begin
> myprinterobject->newpage
> myprinterobject->draw, myview
> myprinterobject->newdocument
> endif
>
> The graphic atoms in the view are NOT normalized but are in
> natural data coordinates.
>
> I keep looking for the equivalent controls dor the direct
> graphics PRINTER device such as...
> DEVICE, ysize = blah, xsize = fooey, xoffset = duh, ...
>
> IDL> help, !version,/str
> ** Structure !VERSION, 7 tags, length=44:
> ARCH STRING 'x86'
> OS STRING 'Win32'
> OS_FAMILY STRING 'Windows'
> RELEASE STRING '5.4'
> BUILD_DATE STRING 'Sep 25 2000'
> MEMORY_BITS INT 32
> FILE_OFFSET_BITS
> INT = 64
>
> Thanks,
>
> Ben
>
> --
> Ben Tupper
> 248 Lower Round Pond Road
> POB 106
> Bristol, ME 04539
>
> Tel: (207) 563-1048
> Email: PemaquidRiver@tidewater.net

--
Ben Tupper
248 Lower Round Pond Road
POB 106
Bristol, ME 04539

Tel: (207) 563-1048
Email: PemaquidRiver@tidewater.net
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrPrinter
Next Topic: correlating two arrays

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

Current Time: Wed Oct 08 09:13:58 PDT 2025

Total time taken to generate the page: 0.00480 seconds