Browse Source

get x=>width y=>height the correct way around.

pull/140/head
Scott Williams 9 years ago
parent
commit
97f5f3e408
  1. 4
      src/ImageSharp.Drawing/Brushes/PatternBrush{TColor}.cs

4
src/ImageSharp.Drawing/Brushes/PatternBrush{TColor}.cs

@ -128,8 +128,8 @@ namespace ImageSharp.Drawing.Brushes
{
get
{
x = x % this.pattern.Height;
y = y % this.pattern.Width;
x = x % this.pattern.Width;
y = y % this.pattern.Height;
return this.pattern[x, y];
}

Loading…
Cancel
Save