Re: image is not graphics
- To: mathgroup at smc.vnet.net
- Subject: [mg110875] Re: image is not graphics
- From: Alessandro <alexxx.magni at gmail.com>
- Date: Sat, 10 Jul 2010 03:58:32 -0400 (EDT)
- References: <i16vn8$ivv$1@smc.vnet.net>
On 9 Lug, 13:04, Alessandro <alexxx.ma... at gmail.com> wrote: > I have to admit that I'm really tired with Mathematica's assumption that > "Image is not a graphics primitive or directive": > I lost track of how many times I received that annoying error, due to > this stupid internal dichotomy. > > At the moment I get the error since I'm trying to set in some way the > output of the composition of two images with ImageSize, so I tried: > > Print[Graphics[ImageCompose[bi, Graphics[Locator[{0, 0}, loc]], > {nx/2 - b, ny/2 + a}], ImageSize -> 300]], > > Seems that I cannot put Graphics around ImageCompose, since the latter > returns an image which <sarcasm> as we all know is not a Graphics > object... </sarcasm> so how do I use ImageSize? > > I'll be grateful to anybody who will help me here, > but really this kind problem is happening more and more often - I > believe that some rethinking of the graphics would be appreciated... > > thank you > > alessandro i=ImageCompose[bi, Graphics[Locator[{0, 0}, loc]], {nx/2 - b, ny/2 + a}], ImageSize -> 300]], Show[i,ImageSize->300] ok, ok... yet I still cannot understand how to correctly mix Show, Graphics, Image and their brothers and sisters... alessandro