Skip to content
Snippets Groups Projects
Commit 36efa3c0 authored by Laurent Knoll's avatar Laurent Knoll
Browse files

Correction de l'laignement masque / coordonnées du contour du blob. Closes #7

parent eabb94eb
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment