Method Image.XCF._decode()
- Method
_decode
mapping(string:Image.Image|string) _decode(stringgimp_image_data,mapping(string:mixed)|voidopts)
mapping(string:Image.Image|string) _decode(GimpImagegimp_image,mapping(string:mixed)|voidopts)
mapping(string:Image.Image|string) _decode(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.
"shrink_fact":intShrink the image by a factor of X. Useful for previews.
"draw_guides":boolIf true, draw the vertical and horizontal guides
"mark_layers":boolIf true, draw boxes around layers
"mark_layer_names":boolIf true, draw layer names in the image
"mark_active_layer":boolIf true, highlight the active layer
The return value has this format:
"type":string"image/x-gimp-image"
"img":Image.ImageThe image
"alpha":Image.ImageThe alpha channel