Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DisplayAnimation

Hierarchy

Index

Accessors

messages

Methods

Private _displayAnimationFromGIF

  • _displayAnimationFromGIF(input: Buffer): Promise<JimpArray>
  • This function generates the message when the a static image is used

    Parameters

    • input: Buffer

      Buffer representing an image file

    Returns Promise<JimpArray>

    A promise which resolves when the processing is done

Private _displayImage

  • _displayImage(input: Buffer): Promise<JimpArray>
  • This function generates the message when the a static image is used

    Parameters

    • input: Buffer

      a Buffer representing an image file

    Returns Promise<JimpArray>

    A promise which resolves when the processing is done

clear

  • clear(): void

push

  • push(msg: string): number
  • This queues a message in the message queue

    Parameters

    • msg: string

      the message to append in the message queue

    Returns number

    the length of the message queue

read

  • read(input: string | Buffer): Promise<JimpArray>
  • Reads an image and returns a promise of JimpArray. It works with gif, jpeg, png and bmp

    Parameters

    • input: string | Buffer

      a filepath to an image or a buffer reprensenting an image

    Returns Promise<JimpArray>

    a promse of JimpArray

    d.read(msg.buffer).then(result => {
      node.send({ payload: result.asBinaryBuffer() });
    }).catch(err => {
      throw err
    })

Generated using TypeDoc