Method Image.PSD.decode_layers()
- Method decode_layers
array(Image.Layer) decode_layers(stringdata,mapping|voidoptions)- 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":boolIf included, all layers will be decoded, even the non-visible ones.
"crop_to_bounds":boolRemove areas that are outside the image boundaries in all layers
"background":Image.ColorIf included, include a solid background layer with the given color