Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ImageUtil

Implements

Index

Methods

getBase64Image

  • getBase64Image(img: HTMLImageElement): string
  • Appropriate for browsers.

    Parameters

    • img: HTMLImageElement

      an image. Can be obtained in a manner similar to :

      var img = document.getElementById("img_id");

    Returns string

    a base 64 encoded string of the image.

loadImageFromURL

  • loadImageFromURL(url: string, onLoad: function, onError: function): void
  • Parameters

    • url: string
    • onLoad: function
        • (image: any): void
        • Parameters

          • image: any

          Returns void

    • onError: function
        • (errorMessage: string): void
        • Parameters

          • errorMessage: string

          Returns void

    Returns void

Generated using TypeDoc