MathGroup Archive 2008

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

Search the Archive

Re: Color space conversion in Mathematica v6.0

  • To: mathgroup at
  • Subject: [mg88946] Re: Color space conversion in Mathematica v6.0
  • From: ragfield <ragfield at>
  • Date: Thu, 22 May 2008 02:35:03 -0400 (EDT)
  • References: <g11ram$ag5$>

On May 21, 1:57 pm, Robert Buchanan <j.robert.bucha... at>
> I have a several 2D and 3D graphics which I would like to export as
> EPS and PDF image files. Either prior to Export[]-ing or while
> Export[]-ing I would like to convert them from color to grayscale. Is
> there an option to Export[] for doing this or some other function in
> the Mathematical kernel for doing this? In versions earlier than 6.0 I
> could specify ColorOutput->GrayLevel, but this is not a valid option
> in version 6.0.

There is a global FrontEnd option:


which will convert bitmaps to grayscale when exporting to either EPS
or PDF, but this does not affect other graphics primitives.  One way
to do this conversion for other primitives is a simple replacement:

(* g is a Graphics expresion *)

It's more complicated for Graphics3D expressions, as you must deal
with lighting issues.


  • Prev by Date: Re: Computing n-grams
  • Next by Date: Re: Plotting a series of piecewise functions
  • Previous by thread: Color space conversion in Mathematica v6.0
  • Next by thread: Re: Color space conversion in Mathematica v6.0