Class StiImageConverter

Hierarchy

  • StiImageConverter

Index

Methods

Static bytesToImage

  • bytesToImage(bytes: number[], width?: number, height?: number, stretch?: boolean, aspectRatio?: boolean): Image
  • Parameters

    • bytes: number[]
    • Default value width: number = 200
    • Default value height: number = 200
    • Default value stretch: boolean = true
    • Default value aspectRatio: boolean = false

    Returns Image

Static imageToBytes

  • imageToBytes(image: Image, allowNulls?: boolean): number[]
  • Parameters

    • image: Image
    • Default value allowNulls: boolean = false

    Returns number[]

Static imageToString

  • imageToString(image: Image): string
  • Parameters

    Returns string

Static stringToByteArray

  • stringToByteArray(str: string): number[]
  • Parameters

    • str: string

    Returns number[]

Static stringToImage

  • stringToImage(str: string): Image
  • Parameters

    • str: string

    Returns Image

Generated using TypeDoc