Pebble App Framework: Phone API
    Preparing search index...

    Function image

    • Reads a bitmap off a property's image, the watch's own 4-bit palettized layout.

      The width and the height have to be whole numbers from 1 up, the palette 1 to 16 bytes, all a 4-bit pixel can name, and the pixels exactly the rows the size calls for, each ceil(width / 2) bytes. Anything else is no image, since a bitmap built from a short run would draw whatever memory followed it.

      Parameters

      • property: SourceProperty | undefined

        The property, which may be missing or carry anything.

      Returns ImageReading | undefined

      The image, or undefined when there is none or it does not check out.