frame-msg
    Preparing search index...

    Class TxImageSpriteBlock

    An image split into horizontal sprite strips.

    Index

    Constructors

    Properties

    image: TxSprite

    Source sprite to split.

    progressiveRender: boolean

    Whether to render lines as they arrive.

    spriteLineHeight: number

    Height of each sprite strip. If the TxSprite is compressed, the strip has a packed size limit of 4kB and this value is dynamically calculated.

    spriteLines: TxSprite[] = []

    List of sprite strips.

    updatable: boolean

    Whether lines can be updated after initial render.

    Methods

    • Packs the image block header into a binary format.

      Returns Uint8Array

      Uint8Array Binary representation of the header

      Error if there are no sprite lines to pack (though _splitIntoLines should always create at least one if height > 0 and spriteLineHeight > 0)