TX Sheet Control

PictureSource Interface

Interface

Exactly one embedded picture source: bytes, data URL or base64 with an optional MIME type.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Members

Properties

PropertyDescription
altTextThe altText value of PictureSource.
base64The base64 value of PictureSource.
bytesThe bytes value of PictureSource.
dataUrlThe dataUrl value of PictureSource.
mimeTypeThe mimeType value of PictureSource.

Examples

Pass the PictureSource value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { PictureSource } from '@txtextcontrol/tx-sheet-control';

function inspectPictureSourceBase64(pictureSource: PictureSource) {
    const value = pictureSource['base64'];
    console.log('PictureSource.base64', value);
}

See Also