Hierarchy

  • ImageUtils

Constructors

Methods

  • Get image for data

    Returns

    Parameters

    • data: string | Buffer | Uint8Array

      file data or file path

    • contentType: string = 'image/png'

    Returns Promise<GeoPackageImage>

  • Get image for data

    Returns

    Parameters

    • data: string | Buffer

      file data or file path

    Returns ISizeCalculationResult

  • Check if the image is fully transparent, meaning it contains only transparent pixels as an empty image

    Returns

    true if fully transparent

    Parameters

    • data: Buffer | Uint8Array

      image as GeoPackageImage

    • width: any
    • height: any

    Returns Promise<boolean>

Generated using TypeDoc