Browse Source

Merge pull request #368 from pinki/core

Crop source origin fixed

Former-commit-id: 719525a97c5dbb394ab78e39a37a855af28efd2e
Former-commit-id: 31bfdf55c292ec9f633b778e986fc4505d94244b
Former-commit-id: 44fafcb2f1a25e48253b11450da187e8aee6866e
af/merge-core
James Jackson-South 10 years ago
parent
commit
35ef835076
  1. 2
      src/ImageProcessorCore/Samplers/Crop.cs

2
src/ImageProcessorCore/Samplers/Crop.cs

@ -29,7 +29,7 @@ namespace ImageProcessorCore.Samplers
{ {
for (int x = startX; x < endX; x++) for (int x = startX; x < endX; x++)
{ {
target[x, y] = source[x, y]; target[x, y] = source[x + sourceRectangle.X, y + sourceRectangle.Y];
} }
this.OnRowProcessed(); this.OnRowProcessed();

Loading…
Cancel
Save