algonim
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    width: number

    Width of this Image.

    height: number

    Height of this Image.

    offsetX: number = 0

    Horizontal offset relative to the top left corner of the logical screen.

    offsetY: number = 0

    Vertical offset relative to the top left corner of the logical screen.

    indices: Uint8ClampedArray

    Indices into the color table, from left to right, top to bottom.

    colorTable: ColorTable
    tableIsLocal: boolean = true
    compressionFn: CompressionFn = compress

    Methods

    • Creates an image from a sequence of colors.

      Parameters

      • width: number
      • height: number
      • colors: Uint32Array

        Obviously the length of this array must be width * height to be able to fill in the entire image.

      • colorTable: ColorTable

        Color table to use. It will be stored in the resulting image and marked as local.

      Returns Image