Fixing code example on

js_image_display markdown
This commit is contained in:
Gonzalo Matheu 2024-04-09 16:06:08 -03:00 committed by GitHub
parent f37924796f
commit cb339ac6d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ cv.cvtColor(dst, dst, cv.COLOR_***2RGBA);
Then, new an ImageData obj from dst:
@code{.js}
let imgData = new ImageData(new Uint8ClampedArray(dst.data, dst.cols, dst.rows);
let imgData = new ImageData(new Uint8ClampedArray(dst.data), dst.cols, dst.rows);
@endcode
Finally, display it: