UXP Toolkit
    Preparing search index...

    An object literal can be constructed with the following properties and passed to Layer.applyImage. As a type, ApplyImageOptions can be used in Typescript development.

    const options = {
    source: {
    document: require('photoshop').app.documents[0],
    layer: require('photoshop').app.documents[0].layers[1],
    channel: require('photoshop').app.documents[0].channels[2],
    },
    blending: require('photoshop').constants.ApplyImageBlendMode.SCREEN,
    };
    await require('photoshop').app.activeDocument.layers[0].applyImage(options);

    objects/options

    24.5

    interface ApplyImageOptions {
        blending?: ApplyImageBlendMode;
        mask?: ApplyImageSource;
        opacity?: number;
        preserveTransparency?: boolean;
        source: ApplyImageSource;
    }
    Index

    Properties

    The blend mode used to apply the source to the active layer.

    MULTIPLY
    

    24.5

    The Mask reference to be used in the Apply Image operation.

    24.5

    opacity?: number

    The opacity used while applying the source to the active layer.

    0..100

    100
    

    24.5

    preserveTransparency?: boolean

    Whether to preserve the original transparency of the active layer.

    false
    

    24.5

    The source reference to be used in the Apply Image operation.

    24.5