Skip to content

[Request] document for Piu ImageBuffer #1653

Description

@stc1988

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions