meo-canvas - v8.1.0
    Preparing search index...

    Function Image

    • Draws an image from a URL, a file path or a Buffer.

      Remote sources are fetched during the render, so a paged render shares one cache across pages and loads a repeated source once.

      Parameters

      Returns CanvasElement

      Image({
      src: 'https://example.com/avatar.png',
      width: 64,
      height: 64,
      objectFit: 'cover',
      borderRadius: 32,
      httpOptions: { headers: { Authorization: 'Bearer …' } },
      })