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

Home » Public Forums » archive » Re: Poscript Component Selection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Poscript Component Selection [message #45523 is a reply to message #45519] Mon, 12 September 2005 15:41 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
Your code will always produce PS images that look like JPEGs (i.e.
pixelated) rather than vectors. Let's look at some of the important
lines of your code.


Here, you're grabbing the image on the current window. The variable
data is simply a 2-dimensional array of the pixels in the window. What
you have are pixels of the image, not the individual components of the
image.

> oImage = sState.oWindow->Read()
> oImage->GetProperty,DATA=data

Setting im3d to data...

> im3d=data

Setting the output to PS...

> SET_PLOT, 'ps'

Now you're drawing the image pixels to the PostScript file. Because you
only have pixels at this point, that's all that's going to appear in the
file.

> TVSCL, im3d, TRUE=1

Closing out the PS...

> DEVICE, /CLOSE


So, what do you do about all of this? If you can get your hands on the
view object before it is drawn, you can use the IDLgrClipboard::Draw
method where you pass in the IDLgrView and specify to use VECTOR = 1 and
POSTSCRIPT = 1.

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: tvimage followed by contour in ps... positioning not coming out right
Next Topic: Re: Force Field

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

Current Time: Thu Oct 09 07:02:26 PDT 2025

Total time taken to generate the page: 1.19900 seconds