ApplyImageOptions
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.
Copied to your clipboard1const options = {2 source: {3 document: require('photoshop').app.documents[0],4 layer: require('photoshop').app.documents[0].layers[1],5 channel: require('photoshop').app.documents[0].channels[2],6 },7 blending: require('photoshop').constants.ApplyImageBlendMode.SCREEN,8};9await require('photoshop').app.activeDocument.layers[0].applyImage(options);
Name | Type | Default | Range | Min Version | Description |
---|---|---|---|---|---|
blending | MULTIPLY | - | 24.5 | The blend mode used to apply the source to the active layer. | |
mask | - | - | 24.5 | The Mask reference to be used in the Apply Image operation. | |
opacity | number | 100 | 0..100 | 24.5 | The opacity used while applying the source to the active layer. |
preserveTransparency | boolean | false | - | 24.5 | Whether to preserve the original transparency of the active layer. |
source | - | - | 24.5 | The source reference to be used in the Apply Image operation. |