piu.md explain how to display bundled image resources with Image, but ImageBuffer does not seem to be documented in piu.md.
ImageBuffer is useful when displaying image data obtained at runtime, for example camera frames or downloaded/decoded JPEG artwork. In those cases the image is not a Resource, so Image is not the right fit.
It would be helpful to add a short ImageBuffer section covering:
- when to use
ImageBuffer
- required fields such as
imageWidth and imageHeight
- setting
buffer to update the displayed image
- a small example, possibly based on
examples/io/imagein/camera/camera-test/main.js
Thanks.
piu.md explain how to display bundled image resources with
Image, butImageBufferdoes not seem to be documented inpiu.md.ImageBufferis useful when displaying image data obtained at runtime, for example camera frames or downloaded/decoded JPEG artwork. In those cases the image is not aResource, soImageis not the right fit.It would be helpful to add a short
ImageBuffersection covering:ImageBufferimageWidthandimageHeightbufferto update the displayed imageexamples/io/imagein/camera/camera-test/main.jsThanks.