Logo Search packages:      
Sourcecode: inkscape version File versions

NR::Matrix sp_item_transform_repr ( SPItem item  ) 

Find out the inverse of previous transform of an item (from its repr)

Definition at line 764 of file sp-item.cpp.

References NR::identity().

Referenced by sp_item_adjust_paint_recursive(), and sp_item_write_transform().

    NR::Matrix t_old(NR::identity());
    gchar const *t_attr = sp_repr_attr(SP_OBJECT_REPR(item), "transform");
    if (t_attr) {
        NR::Matrix t;
        if (sp_svg_transform_read(t_attr, &t)) {
            t_old = t;

    return t_old;

Generated by  Doxygen 1.6.0   Back to index