Method Image.PSD.decode_layers()
- Method decode_layers
array
(Image.Layer
) decode_layers(string
data
,mapping
|void
options
)- Description
Decodes a PSD image to an array of Image.Layer objects
The layer object have the following extra variables (to be queried using Image.Layer()->get_misc_value):
"image_guides"
Returns array containing guide definitions.
"name"
Returns string containing the name of the layer.
"visible"
Is 1 of the layer is visible and 0 if it is hidden.
Accepts these options:
"draw_all_layers"
:bool
If included, all layers will be decoded, even the non-visible ones.
"crop_to_bounds"
:bool
Remove areas that are outside the image boundaries in all layers
"background"
:Image.Color
If included, include a solid background layer with the given color