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 clipboardconst 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);
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. |