MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: PostScipt from Mathlink

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57522] Re: PostScipt from Mathlink
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 31 May 2005 04:59:21 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d79f66$lfh$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

and you can't setup a display function so that the 
kernel call psrender ?
Say your FrontEnd can only render gray images
Than something like
Plot[Sin[x], {x, 0, Pi},
DisplayFunction -> (ImportString[ExportString[#, 
"PGM"], "PGM"] &)
]

will return a Graphics[Raster[__],___] that you 
can render.

Regards
  Jens

"Zhu Chongkai" <mathematica at citiz.net> schrieb im 
Newsbeitrag news:d79f66$lfh$1 at smc.vnet.net...
> In 
> http://library.wolfram.com/infocenter/TechNotes/174/, 
> it says (in
> Section 2.6):
>
>> You will get back a ReturnPacket containing the 
>> Graphics object, and also a series of 
>> DisplayPackets containing PostScript (the last 
>> one of which is a DisplayEndPacket). If you 
>> want to display the graphic you have two 
>> choices: either render the PostScript somehow, 
>> or convert the Graphics object into a form that 
>> you can render. This may seem obvious, but many 
>> programmers forget that handling the PostScript 
>> is not their only option.
>
>> It is likely that in the future the PostScipt 
>> interpreter that is built into the notebook 
>> front end will be spun off as a separate 
>> MathLink program that is callable by 
>> programmers. When this happens, it will be easy 
>> for MathLink programmers to render Mathematica 
>> PostScript in their own programs. Until then, 
>> though, dealing with PostScript is problematic 
>> unless your machine or environment supports 
>> PostScript rendering.
>
>
> It seems to me that "psrender" is the "separate 
> MathLink program that
> is callable by programmers". But I still don't 
> know how to call it. And
> I want a solution that can work under Windows, 
> Unix, and Macintosh.
>
> Could anyone help? Thanks.
>
> Sincerely,
> Chongkai Zhu
> 



  • Prev by Date: Re: Re: Re: Folding Deltas
  • Previous by thread: PostScipt from Mathlink
  • Next by thread: How To Override FrontEnd/init.m Settings?