Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Namespace "png"

This is minimal bindings to libpng needed by webgl polyfills to allow loading png textures.

Index

Functions

Functions

decode

  • decode(data: ArrayBuffer): { bpp: number; height: number; pixels: ArrayBuffer; width: number }
  • Decode a png image.

    Parameters

    • data: ArrayBuffer

      The raw contents of the png file.

    Returns { bpp: number; height: number; pixels: ArrayBuffer; width: number }

    the decoded bitmap data, typically 24-bit RGBA color format.

    • bpp: number
    • height: number
    • pixels: ArrayBuffer
    • width: number

Generated using TypeDoc