MathGroup Archive 2005

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

Search the Archive

Precise bitmaps

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54703] Precise bitmaps
  • From: "Jan G. Korvink" <korvink at t-online.de>
  • Date: Sun, 27 Feb 2005 01:29:46 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear All,

I am battling to obtain a "precise" Raster[] of some Graphics[] objects. 
There seems to be no straightforward way to do the conversion, so I tried:

Export[ /tmp/myfile, Graphics[myGraphics], ImageSize -> {xmax,ymax} 
myBitsPerUnit ]
g = Import[ /tmp/myfile ]

from which I can unpack the Raster[]. Unfortunately the Raster[] 
contains extra white space around the object, and no matter what I 
select for "myfile" (I have tried all bitmap formats) I get a 
consistently bad result. Furthermore, the Export/Import route is pretty 
bad, since it is slow for large pictures.

What works is to use Adobe Illustrator as the rendering engine. But this 
is not nice!

I do not want to implement a renderer, unless absolutely necessary, and 
it seems silly since Mathematica has such an animal.

Can anyone suggest an alternative route?

Thanks in advance, Jan


  • Prev by Date: Exporting output cells to .eps
  • Next by Date: Re: SparseArray, DensityGraphics, ContourGraphics, and SurfaceGraphics
  • Previous by thread: Re: Exporting output cells to .eps
  • Next by thread: Re: Precise bitmaps