Google Groups Home
Help | Sign in
Message from discussion Precise bitmaps
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jan G. Korvink  
View profile
 More options Feb 27 2005, 1:48 am
Newsgroups: comp.soft-sys.math.mathematica
From: "Jan G. Korvink" <korv...@t-online.de>
Date: Sun, 27 Feb 2005 06:48:36 +0000 (UTC)
Local: Sun, Feb 27 2005 1:48 am
Subject: Precise bitmaps
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google