Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Image

Hierarchy

  • Image

Implements

Index

Constructors

constructor

Properties

Private _doc

_doc: IDocument

Private _instance

_instance: any

Methods

getHeight

  • getHeight(): number

getWidth

  • getWidth(): number

isLoaded

  • isLoaded(): boolean

setData

  • setData(data: Buffer | string): void
  • description

    Embeds data as an image on the document. To use this image pass to Painter.drawImage. New instances will reuse embedded img object if passed the same image reference.

    throws

    {TypeError} - throw type error on invalid arguments.

    Parameters

    • data: Buffer | string

      img data

    Returns void

    void

setFile

  • setFile(file: string): void

Generated using TypeDoc