Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RGBLuminanceSource

This class is used to help decode images from files which arrive as RGB data from an ARGB pixel array. It does not support rotation.

author

dswitkin@google.com (Daniel Switkin)

author

Betaminos

Hierarchy

Index

Constructors

constructor

  • new RGBLuminanceSource(luminances: Uint8ClampedArray | Int32Array, width: number, height: number, dataWidth?: number, dataHeight?: number, left?: number, top?: number): RGBLuminanceSource

Properties

Private Optional dataHeight

dataHeight: number

Private Optional dataWidth

dataWidth: number

Private Optional left

left: number

Private luminances

luminances: Uint8ClampedArray

Private Optional top

top: number

Methods

crop

  • crop(left: number, top: number, width: number, height: number): LuminanceSource

getHeight

  • getHeight(): number

getMatrix

  • getMatrix(): Uint8ClampedArray

getRow

  • getRow(y: number, row?: Uint8ClampedArray): Uint8ClampedArray

getWidth

  • getWidth(): number

invert

isCropSupported

  • isCropSupported(): boolean

isRotateSupported

  • isRotateSupported(): boolean

rotateCounterClockwise

rotateCounterClockwise45

toString

  • toString(): string

Generated using TypeDoc