Krzysztof Krysiński 2 лет назад
Родитель
Сommit
4d6aef03b2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/ChunkyImageLib/Operations/PixelOperation.cs

+ 1 - 1
src/ChunkyImageLib/Operations/PixelOperation.cs

@@ -68,7 +68,7 @@ internal class PixelOperation : IMirroredDrawOperation
         if (verAxisX is not null)
             pixelRect = (RectI)pixelRect.ReflectX((double)verAxisX).Round();
         if (horAxisY is not null)
-            pixelRect = pixelRect.ReflectY((int)horAxisY);
+            pixelRect = (RectI)pixelRect.ReflectY((double)horAxisY);
         if (_colorProcessor != null)
         {
             return new PixelOperation(pixelRect.Pos, _colorProcessor, blendMode);