Browse Source

Stylecop

Former-commit-id: 91a27c024108ecc4d4d908710b981e27bc3e750d
Former-commit-id: 1d6f8af6ffbd20af54f347794a7a84c4bcffbfda
Former-commit-id: 19e2ec5430c4510743d831e3af765622a9dcec55
af/merge-core
James South 10 years ago
parent
commit
f2f2d31a60
  1. 4
      src/ImageProcessorCore/Samplers/Resampler.cs

4
src/ImageProcessorCore/Samplers/Resampler.cs

@ -80,7 +80,7 @@ namespace ImageProcessorCore.Samplers
result[i] = new Weights
{
Sum = 0,
Values = new Weight[(int)Math.Floor(2 * width + 1)]
Values = new Weight[(int)Math.Floor((2 * width) + 1)]
};
for (double j = left; j <= right; j++)
@ -116,7 +116,7 @@ namespace ImageProcessorCore.Samplers
result[i] = new Weights
{
Sum = 0,
Values = new Weight[(int)(radius * 2 + 1)]
Values = new Weight[(int)((radius * 2) + 1)]
};
for (double j = left; j <= right; j++)

Loading…
Cancel
Save