Skip to content

DrawLine and DrawLineAa don't draw correctly on larger WriteableBitmaps #115

@lsilvand

Description

@lsilvand

Drawing a line over large distances with DrawLine, the end will be off. In the example below there is a difference of 39 pixels in height.
Drawing a line with DrawLineAa, the end will be of by 1 in width and height.

 WriteableBitmap image = new WriteableBitmap(30000, 10000, 96, 96, PixelFormats.Pbgra32, null);
 image.Clear(Colors.White);
 image.DrawLine(0, 0, 29999, 9999, Colors.Black);
 image.DrawLineAa(0, 0, 29999, 9999, Colors.Red);

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions