Method Image.XCF.decode_layers()
- Method
decode_layers
array(Image.Layer) decode_layers(stringgimp_image_data,mapping(string:mixed)|voidopts)
array(Image.Layer) decode_layers(GimpImagegimp_image,mapping(string:mixed)|voidopts)
array(Image.Layer) decode_layers(mapping(string:mixed)gimp_image_chunks,mapping(string:mixed)|voidopts)- Description
Decode the image data given as the first argument. If it is a string, it is a gimp image file.
If it is a mapping it is the value you get when calling ___decode()
The options can contain one or more of these options:
"draw_all_layers":boolIf included, all layers will be decoded, even the non-visible ones.
"background":Image.ColorIf included, include a solid background layer with the given color
"shrink_fact":intShrink the image by a factor of X. Useful for previews.
The layers have a number of extra properties set on them:
"image_xres":intValues, global to all layers, copied from the GimpImage. Still present in all layers
"image_yres":int"image_colormap":Image.Colormap"image_guides":array(Guide)"image_parasites":array(Parasite)"name":string"visible":bool"active":bool"tatoo":int"parasites":array(Parasite)