mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-30 22:31:52 +00:00
Update extractPaper doc on website
This commit is contained in:
parent
dbfff42790
commit
7faf5d22d8
@ -96,9 +96,8 @@ import jscanify from 'jscanify'</code></pre>
|
|||||||
const paperWidth = 500;
|
const paperWidth = 500;
|
||||||
const paperHeight = 1000;
|
const paperHeight = 1000;
|
||||||
image.onload = function () {
|
image.onload = function () {
|
||||||
scanner.extractPaper(image, paperWidth, paperHeight, (resultCanvas) => {
|
const resultCanvas = scanner.extractPaper(image, paperWidth, paperHeight);
|
||||||
document.body.appendChild(resultCanvas);
|
document.body.appendChild(resultCanvas);
|
||||||
});
|
|
||||||
};</code></pre>
|
};</code></pre>
|
||||||
It's that easy! Come check out the <a href="https://github.com/ColonelParrot/jscanify/wiki"
|
It's that easy! Come check out the <a href="https://github.com/ColonelParrot/jscanify/wiki"
|
||||||
target="_blank">documentation</a>!
|
target="_blank">documentation</a>!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user