ML-Purdue / Document-Reconstruction

Purdue University SIGART document reconstruction project.
1 stars 0 forks source link

When adding pieces to the "island" move the island to the center of the canvas to allow pieces to be added to all sides #23

Closed oggnik closed 10 years ago

oggnik commented 10 years ago

Right now, the island is in the top left of the canvas. This causes pieces that are added to the top/left to be cut off, leading to bad results.

oggnik commented 10 years ago

Utility.drawImage uses the position as the CENTER of the image, this is independent of what the image actually is. I think what might be causing the error is that once it has added the next piece, the image becomes bigger but it isn't shifted back anymore. Maybe...