Opened 3 years ago

#17195 new bug

Unexpected results for StrokeLine with pen sizes != 1

Reported by: madmax Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is the result of StrokeLine(BPoint(x, y), BPoint(x, y+6)) with pen sizes 1, 2 and 3 (same behaviour for greater even/odd sizes), x and y being integer values:

This may be a bug, a mismatch between documentation and real BeOS, or just a misunderstanding on my part, but I would expect that:

  • all lines be the same length (the one for pen size 1, with 7 pixels lit)
  • there'd be no antialiasing on the edges

Horizontal lines have the same effects.

With B_SUBPIXEL_PRECISE we also get different lengths. The AA in the edges disappears, but I'm not sure the one along the line is correct:

Shouldn't the half pixels show for even widths when centered on a pixel and for odd widths when offset half a pixel?

Attachments (3)

vdprecise.png (531 bytes ) - added by madmax 3 years ago.
vnormal.png (586 bytes ) - added by madmax 3 years ago.
vprecise.png (502 bytes ) - added by madmax 3 years ago.

Download all attachments as: .zip

Change History (3)

by madmax, 3 years ago

Attachment: vdprecise.png added

by madmax, 3 years ago

Attachment: vnormal.png added

by madmax, 3 years ago

Attachment: vprecise.png added
Note: See TracTickets for help on using tickets.