Method Image.PSD._decode()
- Method
_decode
mapping_decode(string|mappingdata,mapping|voidoptions)- Description
Decodes a PSD image to a mapping, with at least an 'image' and possibly an 'alpha' object. Data is either a PSD image, or a mapping (as received from __decode)
- Parameter
options "background":array(int)|Image.ColorSets the background to the given color. Arrays should be in the format ({r,g,b}).
"draw_all_layers":boolDraw invisible layers as well.
"draw_guides":boolDraw the guides.
"draw_selection":boolMark the selection using an overlay.
"ignore_unknown_layer_modes":boolDo not asume 'Normal' for unknown layer modes.
"mark_layers":boolDraw an outline around all (drawn) layers.
"mark_layer_names":Image.FontWrite the name of all layers using the font object,
"mark_active_layer":boolDraw an outline around the active layer
- Returns
"image":Image.ImageThe image object.
"alpha":Image.ImageThe alpha channel image object.
- Note
Throws upon error in data. For more information, see __decode