taglib-ts
    Preparing search index...

    Class AsfPicture

    Represents an embedded picture stored in an ASF WM/Picture attribute.

    Create instances via AsfPicture.create (valid picture) or AsfPicture.fromInvalid (sentinel / placeholder).

    Index

    Accessors

    • get dataSize(): number

      Byte size of this picture when serialized inside an ASF attribute. Accounts for the type byte, 4-byte size field, and null-terminated UTF-16LE MIME type and description strings.

      Returns number

    • get description(): string

      Optional description or caption for the picture.

      Returns string

    • set description(value: string): void

      Parameters

      • value: string

        The new description.

      Returns void

    • get isValid(): boolean

      true if this object was successfully parsed or explicitly created.

      Returns boolean

    • get mimeType(): string

      MIME type string (e.g. "image/jpeg").

      Returns string

    • set mimeType(value: string): void

      Parameters

      • value: string

        The new MIME type.

      Returns void

    Methods

    • Deserialize a WM/Picture payload into this instance.

      Sets isValid to true on success and false on malformed input.

      Parameters

      • bytes: ByteVector

        The raw bytes of the attribute value.

      Returns void