Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PixelBlock

Hierarchy

Index

Properties

declaredClass

declaredClass: string

destroyed

destroyed: boolean

height

height: number

The height (or number of rows) of the PixelBlock in pixels.

Read more...

initialized

initialized: boolean

mask

mask: number[] | Uint8Array

An array of nodata mask.

Read more...

maskIsAlpha

maskIsAlpha: boolean

Indicates whether mask should be used as alpha values.

Read more...

pixelType

pixelType: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64"

The pixel type.

Read more...

pixels

pixels: number[] | Float64Array | Float32Array | Uint8Array | Uint8ClampedArray | Uint32Array | Uint16Array | Int8Array | Int16Array | Int32Array

A two dimensional array representing the pixels from the Image Service displayed on the client.

Read more...

statistics

statistics: PixelBlockStatistics[]

An array of objects containing numeric statistical properties.

Read more...

validPixelCount

validPixelCount: number

Number of valid pixels

Read more...

width

width: number

The width (or number of columns) of the PixelBlock in pixels.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • _set<T>(propertyName: string, value: T): PixelBlock
  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns PixelBlock

addData

  • Adds another plane to the PixelBlock.

    Read more...

    Parameters

    Returns void

destroy

  • destroy(): void
  • Returns void

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

getAsRGBA

  • getAsRGBA(): Uint8ClampedArray
  • Returns pixels and masks using a single array in bip format (e.g.

    Read more...

    Returns Uint8ClampedArray

getAsRGBAFloat

  • getAsRGBAFloat(): Float32Array
  • Similar to getAsRGBA, but returns floating point data.

    Read more...

    Returns Float32Array

getPlaneCount

  • getPlaneCount(): number
  • Returns the plane band count of the PixelBlock.

    Read more...

    Returns number

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns PixelBlock

  • Parameters

    Returns PixelBlock

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

Generated using TypeDoc