Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PNGReader

A png file reader

name

PNGReader

Hierarchy

  • PNGReader

Index

Constructors

constructor

Properties

Private _decodedPalette

_decodedPalette: Uint8Array

Private animation

animation: any

Private bits

bits: number = 0

Private colorSpace

colorSpace: any

Private colorType

colorType: number = 0

Private colors

colors: any = 0

Private compressionMethod

compressionMethod: number = 0

Private data

data: any

Private filterMethod

filterMethod: number = 0

Private hasAlphaChannel

hasAlphaChannel: boolean = false

Private height

height: number = 0

Private imgData

imgData: Uint8Array | number[] = []

Private interlaceMethod

interlaceMethod: number = 0

Private palette

palette: any[] = []

Private pixelBitlength

pixelBitlength: number = 0

Private pos

pos: number = 8

Private text

text: {}

Type declaration

Private transparency

transparency: any

Private width

width: number = 0

Methods

copyToImageData

  • copyToImageData(imageData: any, pixels: any): void

decodePalette

  • decodePalette(): Uint8Array

decodePixels

  • decodePixels(data: any): Uint8Array

read

  • read(bytes: any): any[]

readUInt16

  • readUInt16(): number

readUInt32

  • readUInt32(): number

render

  • render(canvas: any): any

Generated using TypeDoc