MathGroup Archive 2005

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

Search the Archive

Re: rasterarray border?


Hi,

you need a line/circle drawing algorithm that work 
on the
RasterArray[], look in the standard text books on 
computer
raster graphics for "Bresenham Line-Drawing"

Regards
  Jens

"Manuel Marques-Pita" <m.marques-pita at ed.ac.uk> 
schrieb im Newsbeitrag 
news:d3ia99$9jj$1 at smc.vnet.net...
> hello,
>
> I am drawing a rasterarray in which I need to 
> draw a border/stroke round
> some of the elements in the array (all the ones 
> != -1 below).
>
> Show[Graphics[RasterArray[von /.
>           {-1 -> RGBColor[1, 1, 1],
>             0 -> RGBColor[0.97, 0.97, 1],
>             1 -> RGBColor[0.3, 0, 0],
>             2 -> RGBColor[1, .78, .78]}]],
>     AspectRatio -> Automatic];
>
> I haven't found a way to do this yet, any 
> ideas/suggestions?
>
> Thanks in advance!
>
> Manuel
> 



  • Prev by Date: Position different in 5.0 and 5.1?
  • Next by Date: Re: Mandrake 10.1 and Mathematica 5.0?
  • Previous by thread: Re: rasterarray border?
  • Next by thread: Re: rasterarray border?