From 36efa3c0485f5c738cffc15e9fb804ff122a8666 Mon Sep 17 00:00:00 2001 From: Laurent Knoll <laurent.knoll@orange.com> Date: Tue, 27 Sep 2022 08:30:46 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=20l'laignement=20masque=20/=20c?= =?UTF-8?q?oordonn=C3=A9es=20du=20contour=20du=20blob.=20Closes=20#7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/downloadStep.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/downloadStep.tsx b/src/steps/downloadStep.tsx index 753bf68..6d0163c 100644 --- a/src/steps/downloadStep.tsx +++ b/src/steps/downloadStep.tsx @@ -110,7 +110,7 @@ export class DownloadStep extends Step<DownloadStepState> { var newContext = newCanvas.getContext('2d'); newContext.fillStyle = "black"; newContext.fillRect(0, 0, newCanvas.width, newCanvas.height); - newContext.drawImage(raster.canvas, path.bounds.x - 0.5, path.bounds.y - 0.5); + newContext.drawImage(raster.canvas, path.bounds.x, path.bounds.y); // Re-aliasing const imageDataWrapper = new ImageDataWrapper(newContext.getImageData(0, 0, w, h)); -- GitLab