From c07ea3d8da7b9c048f47ccb50b537e51bdb9498d Mon Sep 17 00:00:00 2001 From: Michael Heinrich Date: Thu, 21 Apr 2016 23:59:18 +0200 Subject: [PATCH] Crop source origin fixed Former-commit-id: 1e9d9b807019c9db23256dd0572aa70cbc96d7f5 Former-commit-id: 9bd277ace0d969a8b9a12f1fd7dffcc2ca4f3188 Former-commit-id: 8e3d9682314b60c1169a0319aa9ce3b23543a6f2 --- src/ImageProcessorCore/Samplers/Crop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageProcessorCore/Samplers/Crop.cs b/src/ImageProcessorCore/Samplers/Crop.cs index 0d17e2f54..3c315c574 100644 --- a/src/ImageProcessorCore/Samplers/Crop.cs +++ b/src/ImageProcessorCore/Samplers/Crop.cs @@ -29,7 +29,7 @@ namespace ImageProcessorCore.Samplers { 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();