@@ -21,7 +21,7 @@ public void DrawLines_Simple<TPixel>(TestImageProvider<TPixel> provider, string
2121 where TPixel : unmanaged, IPixel < TPixel >
2222 {
2323 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
24- var pen = new Pen ( color , thickness ) ;
24+ var pen = new Pen ( new PenOptions ( color , thickness ) ) ;
2525
2626 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
2727 }
@@ -76,7 +76,7 @@ public void DrawLines_EndCapRound<TPixel>(TestImageProvider<TPixel> provider, st
7676 where TPixel : unmanaged, IPixel < TPixel >
7777 {
7878 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
79- Pen pen = new Pen ( color , thickness , new float [ ] { 3f , 3f } ) ;
79+ Pen pen = new Pen ( new PenOptions ( color , thickness , new float [ ] { 3f , 3f } ) ) ;
8080 pen . EndCapStyle = EndCapStyle . Round ;
8181
8282 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
@@ -88,7 +88,7 @@ public void DrawLines_EndCapButt<TPixel>(TestImageProvider<TPixel> provider, str
8888 where TPixel : unmanaged, IPixel < TPixel >
8989 {
9090 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
91- Pen pen = new Pen ( color , thickness , new float [ ] { 3f , 3f } ) ;
91+ Pen pen = new Pen ( new PenOptions ( color , thickness , new float [ ] { 3f , 3f } ) ) ;
9292 pen . EndCapStyle = EndCapStyle . Butt ;
9393
9494 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
@@ -100,7 +100,7 @@ public void DrawLines_EndCapSquare<TPixel>(TestImageProvider<TPixel> provider, s
100100 where TPixel : unmanaged, IPixel < TPixel >
101101 {
102102 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
103- Pen pen = new Pen ( color , thickness , new float [ ] { 3f , 3f } ) ;
103+ Pen pen = new Pen ( new PenOptions ( color , thickness , new float [ ] { 3f , 3f } ) ) ;
104104 pen . EndCapStyle = EndCapStyle . Square ;
105105
106106 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
@@ -112,7 +112,7 @@ public void DrawLines_JointStyleRound<TPixel>(TestImageProvider<TPixel> provider
112112 where TPixel : unmanaged, IPixel < TPixel >
113113 {
114114 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
115- var pen = new Pen ( color , thickness ) ;
115+ var pen = new Pen ( new PenOptions ( color , thickness ) ) ;
116116 pen . JointStyle = JointStyle . Round ;
117117
118118 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
@@ -124,7 +124,7 @@ public void DrawLines_JointStyleSquare<TPixel>(TestImageProvider<TPixel> provide
124124 where TPixel : unmanaged, IPixel < TPixel >
125125 {
126126 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
127- var pen = new Pen ( color , thickness ) ;
127+ var pen = new Pen ( new PenOptions ( color , thickness ) ) ;
128128 pen . JointStyle = JointStyle . Square ;
129129
130130 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
@@ -136,7 +136,7 @@ public void DrawLines_JointStyleMiter<TPixel>(TestImageProvider<TPixel> provider
136136 where TPixel : unmanaged, IPixel < TPixel >
137137 {
138138 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
139- var pen = new Pen ( color , thickness ) ;
139+ var pen = new Pen ( new PenOptions ( color , thickness ) ) ;
140140 pen . JointStyle = JointStyle . Miter ;
141141
142142 DrawLinesImpl ( provider , colorName , alpha , thickness , antialias , pen ) ;
0 commit comments