By the way, the same sort of bug affects draw-ellipse and canvas%.
-- Garrett Mitchener
On Thu, May 10, 2012 at 11:10 AM, Garrett Mitchener <
garrett.mitche...@gmail.com> wrote:
> Okay, yes, using a dc-path% seems to work as intended.
>
> Thanks!
>
> -- Garrett Mitchener
>
> On Thu, May 10, 2012
Oh, sorry.
Robby
On Thu, May 10, 2012 at 10:04 AM, Matthew Flatt wrote:
> Although pixel alignment can be confusing, I think this one is just a
> bug.
>
> The `draw-rectangle' method tries to adjust the width of an outline so
> that in the simple case --- a width 0 or 1 pen in unsmoothed or alig
Okay, yes, using a dc-path% seems to work as intended.
Thanks!
-- Garrett Mitchener
On Thu, May 10, 2012 at 11:04 AM, Matthew Flatt wrote:
> Although pixel alignment can be confusing, I think this one is just a
> bug.
>
> The `draw-rectangle' method tries to adjust the width of an outline so
>
Although pixel alignment can be confusing, I think this one is just a
bug.
The `draw-rectangle' method tries to adjust the width of an outline so
that in the simple case --- a width 0 or 1 pen in unsmoothed or aligned
mode with a bitmap target --- the rectangle outline is the given width
and heigh
The problem is that the coordinates are "between" the pixels. There is an
explanation of this in the context of another library, but the issues are
the same:
http://docs.racket-lang.org/teachpack/2htdpimage.html?q=2htdp/image#%28part._nitty-gritty%29
hth,
Robby
On Thu, May 10, 2012 at 8:29 AM,
Hi, I'm learning the racket GUI package, and I ran into something that
doesn't make sense to me:
#lang racket/gui
(define black-pen
(new pen%
[width 1]
[color "black"]))
(define blue-brush
(new brush%
[color "blue"]))
(define (draw-test-2 dc)
(send dc scale 10 10)
(
6 matches
Mail list logo