MathGroup Archive 2001

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

Search the Archive

Rendering Error in Raster and RasterArray

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31565] Rendering Error in Raster and RasterArray
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 11 Nov 2001 16:26:09 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear MathGroup,

There is a slight but noticable enough to be annoying error in the rendering
of Raster and RasterArray. The error is that the rendering does not fit the
full specified y range but leaves a slight gap. The x range does seem to be
correctly filled.

array = N[Table[(1/9)*Mod[i, j], {i, 10}, {j, 10}]];
Show[Graphics[
    {Raster[array, {{0, 0}, {1, 1}}],
     Raster[array, {{0, 1}, {1, 2}}],
     Raster[array, {{1, 0}, {2, 1}}]}],
   AspectRatio -> Automatic];

array = Table[GrayLevel[0.1*Mod[i, j]], {i, 2, 10},
    {j, 2, 10}];
Show[Graphics[
    {RasterArray[array, {{0, 0}, {1, 1}}],
     RasterArray[array, {{0, 1}, {1, 2}}],
     RasterArray[array, {{1, 0}, {2, 1}}]}],
   AspectRatio -> Automatic];

The same error does not occur in the rendering of rectangles.

Show[Graphics[
    {Rectangle[{0, 0}, {1, 1}],
     Rectangle[{0, 1}, {1, 2}],
     Rectangle[{1, 0}, {2, 1}]}],
   AspectRatio -> Automatic];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/



  • Prev by Date: [Novice] Automatic bracketing and Defaults Setup
  • Next by Date: Re: Two-dimensional input
  • Previous by thread: Re: [Novice] Automatic bracketing and Defaults Setup
  • Next by thread: Re: Rendering Error in Raster and RasterArray