Gjsify LogoGjsify Logo

Hierarchy

  • ColorMap

Index

Constructors

  • new ColorMap(offset: number, size: number): ColorMap
  • Allocate a new colour map object able to store colour map entries with indexes in the range offset to offset + size.

    The color map must be freed with vnc_color_map_free when no longer required.

    Parameters

    • offset: number

      the offset at which the color map starts

    • size: number

      the number of entries

    Returns ColorMap

Properties

offset: number
size: number
name: string

Methods

  • free(): void
  • lookup(idx: number): [boolean, number, number, number]
  • Lookup the RGB values associated with the colour map entry at position idx

    Parameters

    • idx: number

      the index to set

    Returns [boolean, number, number, number]

  • set(idx: number, red: number, green: number, blue: number): boolean
  • Update the RGB value associated with the color map entry at position idx.

    Parameters

    • idx: number

      the index to set

    • red: number

      the new red value

    • green: number

      the new green value

    • blue: number

      the new blue value

    Returns boolean

  • new(offset: number, size: number): ColorMap
  • Allocate a new colour map object able to store colour map entries with indexes in the range offset to offset + size.

    The color map must be freed with vnc_color_map_free when no longer required.

    Parameters

    • offset: number

      the offset at which the color map starts

    • size: number

      the number of entries

    Returns ColorMap

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method