Hi, I'm learning the racket GUI package, and I ran into something that doesn't make sense to me:<br><br>#lang racket/gui<br><br>(define black-pen<br> (new pen%<br> [width 1]<br> [color "black"]))<br>
<br>(define blue-brush<br> (new brush%<br> [color "blue"]))<br><br>(define (draw-test-2 dc)<br> (send dc scale 10 10)<br> (send dc set-pen black-pen)<br> (send dc set-brush blue-brush)<br> (send dc draw-rectangle 7 2 4 4))<br>
<br>(define pic (make-bitmap 200 100))<br><br>(define dc (new bitmap-dc% [bitmap pic]))<br><br>(draw-test-2 dc)<br><br>And at the end, pic looks like this:<br><br><img alt="Inline image 1" src="cid:ii_13736ef99f5298e5"><br>
The outline and the filling don't line up. What am I doing wrong? This is with DrRacket 5.2.1 on linux.<br><br>Thanks,<br>-- Garrett Mitchener<br>