Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TiffReader

cc.tiffReader is a singleton object, it's a tiff file reader, it can parse byte array to draw into a canvas

name

tiffReader

Hierarchy

  • TiffReader

Index

Constructors

constructor

Properties

Private _canvas

_canvas: any

Private _fileDirectories

_fileDirectories: any[] = []

Private _littleEndian

_littleEndian: boolean = false

Private _tiffData

_tiffData: never[] = []

Methods

checkLittleEndian

  • checkLittleEndian(): boolean

clampColorSample

  • clampColorSample(colorSample: any, bitsPerSample: any): number

getBits

  • getBits(numBits: any, byteOffset: any, bitOffset: any): { bitOffset: number; bits: number; byteOffset: any }
  • Parameters

    • numBits: any
    • byteOffset: any
    • bitOffset: any

    Returns { bitOffset: number; bits: number; byteOffset: any }

    • bitOffset: number
    • bits: number
    • byteOffset: any

getBytes

  • getBytes(numBytes: any, offset: any): number

getFieldTagName

  • getFieldTagName(fieldTag: any): any

getFieldTypeLength

  • getFieldTypeLength(fieldTypeName: any): 1 | 0 | 8 | 4 | 2

getFieldTypeName

  • getFieldTypeName(fieldType: any): any

getFieldValues

  • getFieldValues(fieldTagName: any, fieldTypeName: any, typeCount: any, valueOffset: any): any[]

getUint16

  • getUint16(offset: any): number

getUint32

  • getUint32(offset: any): number

getUint8

  • getUint8(offset: any): never

hasTowel

  • hasTowel(): boolean

parseFileDirectory

  • parseFileDirectory(offset: any): void

parseTIFF

  • parseTIFF(tiffData: any, canvas: any): any

Generated using TypeDoc