UXP Toolkit
    Preparing search index...

    Options for saving a document in BMP format using the Document.saveAs method

    const doc = app.activeDocument;
    const saveFile = await require('uxp').storage.localFileSystem.getFileForSaving("image.bmp");
    await doc.saveAs.bmp(saveFile, {
    depth: constants.BMPDepthType.BMP_24BITS,
    osType: constants.OperatingSystem.WINDOWS
    });

    objects/saveoptions

    22.5

    interface BMPSaveOptions {
        alphaChannels?: boolean;
        depth?: BMPDepthType;
        flipRowOrder?: boolean;
        osType?: OperatingSystem;
        rleCompression?: boolean;
    }
    Index

    Properties

    alphaChannels?: boolean

    True to save the alpha channels.

    22.5

    depth?: BMPDepthType

    The number of bits per channel.

    22.5

    flipRowOrder?: boolean

    True to write the image from top to bottom, available only when osType is OperatingSystem.WINDOWS

    22.5

    The target OS.

    22.5

    rleCompression?: boolean

    True to use RLE compression

    22.5