File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/ImageSharp.Tests/Drawing Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public void EllipticGradientBrushProducesAxisParallelEllipsesWithDifferentRatio<
7171 EllipticGradientBrush < TPixel > unicolorLinearGradientBrush =
7272 new EllipticGradientBrush < TPixel > (
7373 new SixLabors . Primitives . Point ( image . Width / 2 , image . Height / 2 ) ,
74- new SixLabors . Primitives . Point ( image . Width / 2 , ( image . Width * 3 ) / 2 ) ,
74+ new SixLabors . Primitives . Point ( image . Width / 2 , ( image . Width * 2 ) / 3 ) ,
7575 ratio ,
7676 GradientRepetitionMode . None ,
7777 new ColorStop < TPixel > ( 0 , yellow ) ,
@@ -124,9 +124,9 @@ public void EllipticGradientBrushProducesRotatedEllipsesWithDifferentRatio<TPixe
124124 var cos = Math . Cos ( rotation ) ;
125125 var sin = Math . Sin ( rotation ) ;
126126
127- int axisX = ( int ) ( ( center . X * cos ) - ( center . Y * sin ) ) ;
128- int axisY = ( int ) ( ( center . X * sin ) + ( center . Y * cos ) ) ;
129-
127+ int offsetY = image . Height / 6 ;
128+ int axisX = center . X + ( int ) - ( offsetY * sin ) ;
129+ int axisY = center . Y + ( int ) ( offsetY * cos ) ;
130130
131131 EllipticGradientBrush < TPixel > unicolorLinearGradientBrush =
132132 new EllipticGradientBrush < TPixel > (
You can’t perform that action at this time.
0 commit comments