Top |
Some formats may compose an image out of several layers. It could simply be a set of partly transparent pixmaps placed on top of each other. But layers could also be more like filter operations. Sometimes the internal organization of the layers may be in the form of a tree. But abydos will in that case always flatten the tree and index the layers sequentially.
int
abydos_get_layer_count (abydos_t *ar
);
Get the number of layers of the image.
cairo_bool_t abydos_get_layer_visibility (abydos_t *ar
,int layer
);
Check if a layer is currently visible.
void abydos_set_layer_visibility (abydos_t *ar
,int layer
,cairo_bool_t visibility
);
Sets the visibility of a layer. Currently this has no effect for images with only one layer.
ar |
an abydos_t |
|
layer |
layer number staring from 0 |
|
visibility |
True show the layer, false to hide it |