Re: Poscript Component Selection [message #45516 is a reply to message #45515] |
Mon, 12 September 2005 19:10   |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
David Fanning wrote:
> OK, find this line in the DEMO_DRAW:
>
> oWindow->Draw, oView
>
> And after it, try this:
>
> clipboard = Obj_New("IDLgrClipboard", Dimensions=[4,3], Units=1, $
> Resolution=[2.54/300., 2.54/300.])
> clipboard->Draw, oView, Filename='myfile.eps', /PostScript, /Vector
> Obj_Destroy, clipboard
>
> But, I agree with Mark. I don't think it has much of a chance
> of actually working.
DEMO_DRAW is called by the D_VECTRACK widget every time the window is
refreshed, so the above works a little more often than required!
But it does work (I tried it). There are some effects missing in the
resulting plot (eg coloured texture map on one of the slices) and the
lettering is way to big (different Dimensions or Resolution settings for
the clipboard object might fix this).
Don't forget to remove or comment out the extra code and recompile after
you've finished!
--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|