|
|
@ -54,172 +54,225 @@ namespace SixLabors.ImageSharp.Tests.Drawing |
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithPercent10() |
|
|
public void ImageShouldBeFloodFilledWithPercent10() |
|
|
{ |
|
|
{ |
|
|
this.Test("Percent10", Rgba32.Blue, Brushes.Percent10(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
|
|
|
"Percent10", |
|
|
|
|
|
Rgba32.Blue, |
|
|
|
|
|
Brushes.Percent10(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
new[,] |
|
|
new[,] |
|
|
{ |
|
|
{ |
|
|
{ Rgba32.HotPink , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink , Rgba32.LimeGreen}, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen }, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen} |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen } |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithPercent10Transparent() |
|
|
public void ImageShouldBeFloodFilledWithPercent10Transparent() |
|
|
{ |
|
|
{ |
|
|
Test("Percent10_Transparent", Rgba32.Blue, Brushes.Percent10(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Percent10_Transparent", |
|
|
{ Rgba32.HotPink , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Brushes.Percent10(Rgba32.HotPink), |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink , Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithPercent20() |
|
|
public void ImageShouldBeFloodFilledWithPercent20() |
|
|
{ |
|
|
{ |
|
|
Test("Percent20", Rgba32.Blue, Brushes.Percent20(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Percent20", |
|
|
{ Rgba32.HotPink , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink , Rgba32.LimeGreen}, |
|
|
Brushes.Percent20(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
{ Rgba32.HotPink , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink , Rgba32.LimeGreen} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithPercent20_transparent() |
|
|
public void ImageShouldBeFloodFilledWithPercent20_transparent() |
|
|
{ |
|
|
{ |
|
|
Test("Percent20_Transparent", Rgba32.Blue, Brushes.Percent20(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Percent20_Transparent", |
|
|
{ Rgba32.HotPink , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink , Rgba32.Blue}, |
|
|
Brushes.Percent20(Rgba32.HotPink), |
|
|
{ Rgba32.HotPink , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink , Rgba32.Blue} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithHorizontal() |
|
|
public void ImageShouldBeFloodFilledWithHorizontal() |
|
|
{ |
|
|
{ |
|
|
Test("Horizontal", Rgba32.Blue, Brushes.Horizontal(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Horizontal", |
|
|
{ Rgba32.LimeGreen , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink , Rgba32.HotPink}, |
|
|
Brushes.Horizontal(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
{ Rgba32.LimeGreen , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen , Rgba32.LimeGreen} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithHorizontal_transparent() |
|
|
public void ImageShouldBeFloodFilledWithHorizontal_transparent() |
|
|
{ |
|
|
{ |
|
|
Test("Horizontal_Transparent", Rgba32.Blue, Brushes.Horizontal(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Horizontal_Transparent", |
|
|
{ Rgba32.Blue , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink , Rgba32.HotPink}, |
|
|
Brushes.Horizontal(Rgba32.HotPink), |
|
|
{ Rgba32.Blue , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue , Rgba32.Blue} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithMin() |
|
|
public void ImageShouldBeFloodFilledWithMin() |
|
|
{ |
|
|
{ |
|
|
Test("Min", Rgba32.Blue, Brushes.Min(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Min", |
|
|
{ Rgba32.LimeGreen , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.LimeGreen , Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Brushes.Min(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen , Rgba32.LimeGreen}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink , Rgba32.HotPink} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithMin_transparent() |
|
|
public void ImageShouldBeFloodFilledWithMin_transparent() |
|
|
{ |
|
|
{ |
|
|
Test("Min_Transparent", Rgba32.Blue, Brushes.Min(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Min_Transparent", |
|
|
{ Rgba32.Blue , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.Blue , Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Brushes.Min(Rgba32.HotPink), |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue , Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink , Rgba32.HotPink}, |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink, Rgba32.HotPink }, |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithVertical() |
|
|
public void ImageShouldBeFloodFilledWithVertical() |
|
|
{ |
|
|
{ |
|
|
Test("Vertical", Rgba32.Blue, Brushes.Vertical(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Vertical", |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Brushes.Vertical(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithVertical_transparent() |
|
|
public void ImageShouldBeFloodFilledWithVertical_transparent() |
|
|
{ |
|
|
{ |
|
|
Test("Vertical_Transparent", Rgba32.Blue, Brushes.Vertical(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"Vertical_Transparent", |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue}, |
|
|
Brushes.Vertical(Rgba32.HotPink), |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithForwardDiagonal() |
|
|
public void ImageShouldBeFloodFilledWithForwardDiagonal() |
|
|
{ |
|
|
{ |
|
|
Test("ForwardDiagonal", Rgba32.Blue, Brushes.ForwardDiagonal(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"ForwardDiagonal", |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen}, |
|
|
Brushes.ForwardDiagonal(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithForwardDiagonal_transparent() |
|
|
public void ImageShouldBeFloodFilledWithForwardDiagonal_transparent() |
|
|
{ |
|
|
{ |
|
|
Test("ForwardDiagonal_Transparent", Rgba32.Blue, Brushes.ForwardDiagonal(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"ForwardDiagonal_Transparent", |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue}, |
|
|
Brushes.ForwardDiagonal(Rgba32.HotPink), |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithBackwardDiagonal() |
|
|
public void ImageShouldBeFloodFilledWithBackwardDiagonal() |
|
|
{ |
|
|
{ |
|
|
Test("BackwardDiagonal", Rgba32.Blue, Brushes.BackwardDiagonal(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"BackwardDiagonal", |
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen}, |
|
|
Brushes.BackwardDiagonal(Rgba32.HotPink, Rgba32.LimeGreen), |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink, Rgba32.LimeGreen }, |
|
|
|
|
|
{ Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.LimeGreen, Rgba32.HotPink } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void ImageShouldBeFloodFilledWithBackwardDiagonal_transparent() |
|
|
public void ImageShouldBeFloodFilledWithBackwardDiagonal_transparent() |
|
|
{ |
|
|
{ |
|
|
Test("BackwardDiagonal_Transparent", Rgba32.Blue, Brushes.BackwardDiagonal(Rgba32.HotPink), |
|
|
this.Test( |
|
|
new Rgba32[,] { |
|
|
"BackwardDiagonal_Transparent", |
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue}, |
|
|
Rgba32.Blue, |
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue}, |
|
|
Brushes.BackwardDiagonal(Rgba32.HotPink), |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue}, |
|
|
new Rgba32[,] |
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink} |
|
|
{ |
|
|
}); |
|
|
{ Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink, Rgba32.Blue }, |
|
|
|
|
|
{ Rgba32.Blue, Rgba32.Blue, Rgba32.Blue, Rgba32.HotPink } |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |