Skip to content

GDI+ rendering glitch produces diagonal lines that affect grid #327

@swharden

Description

@swharden

GDI+ produces rendering glitches that appear as unwanted diagonal lines when displaying perfectly horizontal lines that extend off the Bitmap edge when anti-aliasing is off. This was previously observed.

I'm not sure why this only now started happening.

image

It's worse in WinForms:

image

This was previously seen in #316:

I fixed this glitch by applying a slight offset to one of the points of the line so it's not perfectly flat. The tilt is invisible to humans, but it fixes the glitch.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions