<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 20, 2012 at 4:23 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
On Dec 19, 2012, at 3:47 PM, Miguel Villaverde wrote:<br>
<br>
> While working on HTDP2, I noticed the following: place-image seems to snip<br>
> the last column and row of pixels in its background image. This does not<br>
> happen when using overlay instead, or if the background is a scene.<br>
> place-image/align shows the same behavior:<br>
><br>
> (require 2htdp/image)<br>
><br>
> (define CIRCLE (circle 5 "solid" "red"))<br>
> (define RECTANGLE (rectangle 100 100 "outline" "black"))<br>
> (define SCENE (empty-scene 100 100))<br>
><br>
> (place-image CIRCLE 50 50 RECTANGLE)<br>
> (overlay CIRCLE RECTANGLE)<br>
> (place-image CIRCLE 50 50 SCENE)<br>
> (overlay CIRCLE SCENE)<br>
><br>
> (place-image/align CIRCLE 50 50 "center" "center" RECTANGLE)<br>
><br>
> If you run that, you'll notice the rectangle has lost its right and bottom<br>
> borders in the first and last images. This is using the beginner student<br>
> language in DrRacket 5.3.1.<br>
><br>
> Is this a bug? Is it intended behavior? If so, why?<br>
<br>
<br>
</div>This is not a bug but an unfortunate feature.<br>
The documentation for 2htdp/image has a section<br>
on the details of drawing things with pen (bottom).<br>
<div class="im"><br></div></blockquote><div><br></div><div style>This section is actually the first one in the image guide:</div><div style><br></div><div style> <a href="http://docs.racket-lang.org/teachpack/2htdpimage-guide.html">http://docs.racket-lang.org/teachpack/2htdpimage-guide.html</a></div>
<div style><br></div><div style>Robby</div><div style><br></div></div></div></div>