@@ -19,8 +19,9 @@ public void ImageShouldBeOverlayedByPath()
1919 string path = TestEnvironment . CreateOutputDirectory ( "Drawing" , "Lines" ) ;
2020 using ( var image = new Image < Rgba32 > ( 500 , 500 ) )
2121 {
22+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
2223 image . Mutate (
23- x => x . BackgroundColor ( Rgba32 . Blue ) . DrawLines (
24+ x => x . DrawLines (
2425 Rgba32 . HotPink ,
2526 5 ,
2627 new Vector2 ( 10 , 10 ) ,
@@ -43,8 +44,9 @@ public void ImageShouldBeOverlayedByPath_NoAntialias()
4344 string path = TestEnvironment . CreateOutputDirectory ( "Drawing" , "Lines" ) ;
4445 using ( var image = new Image < Rgba32 > ( 500 , 500 ) )
4546 {
47+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
4648 image . Mutate (
47- x => x . BackgroundColor ( Rgba32 . Blue ) . DrawLines (
49+ x => x . DrawLines (
4850 new GraphicsOptions ( false ) ,
4951 Rgba32 . HotPink ,
5052 5 ,
@@ -68,9 +70,8 @@ public void ImageShouldBeOverlayedByPathDashed()
6870 string path = TestEnvironment . CreateOutputDirectory ( "Drawing" , "Lines" ) ;
6971 using ( var image = new Image < Rgba32 > ( 500 , 500 ) )
7072 {
71- image . Mutate ( x => x
72- . BackgroundColor ( Rgba32 . Blue )
73- . DrawLines ( Pens . Dash ( Rgba32 . HotPink , 5 ) ,
73+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
74+ image . Mutate ( x => x . DrawLines ( Pens . Dash ( Rgba32 . HotPink , 5 ) ,
7475 new SixLabors . Primitives . PointF [ ] {
7576 new Vector2 ( 10 , 10 ) ,
7677 new Vector2 ( 200 , 150 ) ,
@@ -86,9 +87,8 @@ public void ImageShouldBeOverlayedByPathDotted()
8687 string path = TestEnvironment . CreateOutputDirectory ( "Drawing" , "Lines" ) ;
8788 using ( var image = new Image < Rgba32 > ( 500 , 500 ) )
8889 {
89- image . Mutate ( x => x
90- . BackgroundColor ( Rgba32 . Blue )
91- . DrawLines ( Pens . Dot ( Rgba32 . HotPink , 5 ) ,
90+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
91+ image . Mutate ( x => x . DrawLines ( Pens . Dot ( Rgba32 . HotPink , 5 ) ,
9292 new SixLabors . Primitives . PointF [ ] {
9393 new Vector2 ( 10 , 10 ) ,
9494 new Vector2 ( 200 , 150 ) ,
@@ -104,9 +104,8 @@ public void ImageShouldBeOverlayedByPathDashDot()
104104 string path = TestEnvironment . CreateOutputDirectory ( "Drawing" , "Lines" ) ;
105105 using ( var image = new Image < Rgba32 > ( 500 , 500 ) )
106106 {
107- image . Mutate ( x => x
108- . BackgroundColor ( Rgba32 . Blue )
109- . DrawLines ( Pens . DashDot ( Rgba32 . HotPink , 5 ) ,
107+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
108+ image . Mutate ( x => x . DrawLines ( Pens . DashDot ( Rgba32 . HotPink , 5 ) ,
110109 new SixLabors . Primitives . PointF [ ] {
111110 new Vector2 ( 10 , 10 ) ,
112111 new Vector2 ( 200 , 150 ) ,
@@ -122,9 +121,9 @@ public void ImageShouldBeOverlayedByPathDashDotDot()
122121 string path = TestEnvironment . CreateOutputDirectory ( "Drawing" , "Lines" ) ;
123122 var image = new Image < Rgba32 > ( 500 , 500 ) ;
124123
125- image . Mutate ( x => x
126- . BackgroundColor ( Rgba32 . Blue )
127- . DrawLines ( Pens . DashDotDot ( Rgba32 . HotPink , 5 ) , new SixLabors . Primitives . PointF [ ] {
124+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
125+ image . Mutate ( x => x . DrawLines ( Pens . DashDotDot ( Rgba32 . HotPink , 5 ) ,
126+ new SixLabors . Primitives . PointF [ ] {
128127 new Vector2 ( 10 , 10 ) ,
129128 new Vector2 ( 200 , 150 ) ,
130129 new Vector2 ( 50 , 300 )
@@ -141,8 +140,9 @@ public void ImageShouldBeOverlayedPathWithOpacity()
141140
142141 var image = new Image < Rgba32 > ( 500 , 500 ) ;
143142
143+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
144144 image . Mutate (
145- x => x . BackgroundColor ( Rgba32 . Blue ) . DrawLines (
145+ x => x . DrawLines (
146146 color ,
147147 10 ,
148148 new Vector2 ( 10 , 10 ) ,
@@ -169,8 +169,9 @@ public void ImageShouldBeOverlayedByPathOutline()
169169
170170 var image = new Image < Rgba32 > ( 500 , 500 ) ;
171171
172+ image . Mutate ( x => x . BackgroundColor ( Rgba32 . Blue ) ) ;
172173 image . Mutate (
173- x => x . BackgroundColor ( Rgba32 . Blue ) . DrawLines (
174+ x => x . DrawLines (
174175 Rgba32 . HotPink ,
175176 10 ,
176177 new Vector2 ( 10 , 10 ) ,
0 commit comments