@kayahr/wastelib
    Preparing search index...

    Class Portraits

    Container for the portraits of an allpics file.

    Index

    Constructors

    Methods

    • Returns the number of portraits.

      Returns number

      The number of portraits.

    • Returns the portrait with the given index.

      Parameters

      • index: number

        The index of the portrait to return.

      Returns Portrait

      The portrait.

    • Reads portraits from the given array.

      Parameters

      • array: Uint8Array

        The array to read the portraits from.

      Returns Portraits

      The read portraits.

    • Reads portraits from the two given arrays.

      Parameters

      • array1: Uint8Array

        The array with the ALLPICS1 file content.

      • array2: Uint8Array

        The array with the ALLPICS2 file content.

      Returns Portraits

      The read portraits.

    • Reads portraits from the given blob.

      Parameters

      • blob: Blob

        The ALLPICS1 or ALLPICS2 blob to read.

      Returns Promise<Portraits>

      The read portraits.

    • Reads portraits from the two given blobs.

      Parameters

      • blob1: Blob

        The ALLPICS1 blob to read.

      • blob2: Blob

        The ALLPICS2 blob to read

      Returns Promise<Portraits>

      The read portraits.