File tree Expand file tree Collapse file tree
tests/ImageSharp.Tests/Processing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,23 +252,24 @@ public void Transform_With_Custom_Dimensions<TPixel>(TestImageProvider<TPixel> p
252252 [ Fact ]
253253 public void TransformRotationDoesNotOffset ( )
254254 {
255- Rgba32 marker = Color . Aqua ;
255+ Rgba32 background = Color . DimGray . ToPixel < Rgba32 > ( ) ;
256+ Rgba32 marker = Color . Aqua . ToPixel < Rgba32 > ( ) ;
256257
257- using Image < Rgba32 > img = new ( 100 , 100 , Color . DimGray ) ;
258+ using Image < Rgba32 > img = new ( 100 , 100 , background ) ;
258259 img [ 0 , 0 ] = marker ;
259260
260261 img . Mutate ( c => c . Rotate ( 180 ) ) ;
261262
262263 Assert . Equal ( marker , img [ 99 , 99 ] ) ;
263264
264- using Image < Rgba32 > img2 = new ( 100 , 100 , Color . DimGray ) ;
265+ using Image < Rgba32 > img2 = new ( 100 , 100 , background ) ;
265266 img2 [ 0 , 0 ] = marker ;
266267
267268 img2 . Mutate (
268269 c =>
269270 c . Transform ( new AffineTransformBuilder ( ) . AppendRotationDegrees ( 180 ) , KnownResamplers . NearestNeighbor ) ) ;
270271
271- using Image < Rgba32 > img3 = new ( 100 , 100 , Color . DimGray ) ;
272+ using Image < Rgba32 > img3 = new ( 100 , 100 , background ) ;
272273 img3 [ 0 , 0 ] = marker ;
273274
274275 img3 . Mutate ( c => c . Transform ( new AffineTransformBuilder ( ) . AppendRotationDegrees ( 180 ) ) ) ;
Original file line number Diff line number Diff line change @@ -188,23 +188,24 @@ public void Transform_With_Custom_Dimensions<TPixel>(TestImageProvider<TPixel> p
188188 [ Fact ]
189189 public void TransformRotationDoesNotOffset ( )
190190 {
191- Rgba32 marker = Color . Aqua ;
191+ Rgba32 background = Color . DimGray . ToPixel < Rgba32 > ( ) ;
192+ Rgba32 marker = Color . Aqua . ToPixel < Rgba32 > ( ) ;
192193
193- using Image < Rgba32 > img = new ( 100 , 100 , Color . DimGray ) ;
194+ using Image < Rgba32 > img = new ( 100 , 100 , background ) ;
194195 img [ 0 , 0 ] = marker ;
195196
196197 img . Mutate ( c => c . Rotate ( 180 ) ) ;
197198
198199 Assert . Equal ( marker , img [ 99 , 99 ] ) ;
199200
200- using Image < Rgba32 > img2 = new ( 100 , 100 , Color . DimGray ) ;
201+ using Image < Rgba32 > img2 = new ( 100 , 100 , background ) ;
201202 img2 [ 0 , 0 ] = marker ;
202203
203204 img2 . Mutate (
204205 c =>
205206 c . Transform ( new ProjectiveTransformBuilder ( ) . AppendRotationDegrees ( 180 ) , KnownResamplers . NearestNeighbor ) ) ;
206207
207- using Image < Rgba32 > img3 = new ( 100 , 100 , Color . DimGray ) ;
208+ using Image < Rgba32 > img3 = new ( 100 , 100 , background ) ;
208209 img3 [ 0 , 0 ] = marker ;
209210
210211 img3 . Mutate ( c => c . Transform ( new AffineTransformBuilder ( ) . AppendRotationDegrees ( 180 ) ) ) ;
You can’t perform that action at this time.
0 commit comments