MathGroup Archive 2007

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

Search the Archive

Re: Importing and retaining graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75199] Re: Importing and retaining graphics
  • From: ragfield <ragfield at gmail.com>
  • Date: Fri, 20 Apr 2007 00:38:30 -0400 (EDT)
  • References: <f079ri$48g$1@smc.vnet.net>

On Apr 19, 2:39 am, AES <sieg... at stanford.edu> wrote:
> OK, I've learned that
>
>    Import["/Users/AES/Desktop/myImage.jpg"]
>
> will import an image from my Mac desktop into a notebook, and then
>
>    Show[%, ImageSize->3*72]
>
> will display it.  But:
>
> 1)  How do I then "freeze" or retain that graphic or that image, in a
> displayed or rendered form, as a permanently retained and displayed
> image cell in this notebook, with the two lines above deleted?  

If you just want the cell to not disappear when you reevaluate the
input, the simplest thing to do would be to change the cell's style to
something besides "Output".

> 2) Is there an easier way, on a Mac, to Drag and Drop, or Copy and
> Paste, a JPEG image like this (or a PDF page), from the Finder or some
> Mac app into a notebook, as a permanently retained cell in that
> notebook?  (Permanently retained until explicitly deleted, that is.)

Open the image in Preview, Copy, switch to Mathematica, Paste.

> 3)  What Format => Style do I assign to "permanently retained image
> cells" like this?  
>
> (I'd prefer that they not have the same style as graphics cells that are
> generated anew each time the notebook is executed; I don't want them to
> be selected when I Option-click on an generated image cell boundary, or
> to be included in animations of generated cells.)

A pasted graphic appears to have the style "Graphics" (which doesn't
show up in the menu, but you can manually enter with Format > Style >
Other...).  I would suggest using that style.

-Rob



  • Prev by Date: Re: neat way to program minimum of sum
  • Next by Date: Re: Eliminate white border around DensityPlot?
  • Previous by thread: Re: Importing and retaining graphics
  • Next by thread: Re: Importing and retaining graphics