Lines Matching defs:pattern
2 * SVG <pattern> implementation
35 #include "sp-pattern.h"
80 doc->addResource("pattern", this);
87 this->document->removeResource("pattern", this);
334 Inkscape::XML::Node *repr = xml_doc->createElement("svg:pattern");
349 SPPattern *pattern = this;
350 if (pattern->href.empty() || pattern->hrefcount > _countHrefs(item)) {
351 pattern = _chain();
352 Glib::ustring href = Glib::ustring::compose("url(#%1)", pattern->getRepr()->attribute("id"));
358 return pattern;
363 // this formula is for a different interpretation of pattern transforms as described in (*) in sp-pattern.cpp
365 // pattern->patternTransform = premul * item->transform * pattern->patternTransform * item->transform.inverse() *
389 Inkscape::XML::Node *repr = xml_doc->createElement("svg:pattern");
426 // pattern
563 // for each item in pattern, show it on our drawing, add to the group,
590 // Pattern size in pattern space
593 // Content to tile (pattern space)
597 // viewBox to pattern server (using SPViewBox)
612 // Tile (pattern space) to user.
616 // Transform of object with pattern (includes screen scaling)
623 // An oversampling is done as the pattern may not pixel align with the final surface.
626 // Oversample the pattern
635 // Create drawing surface with size of pattern tile (in pattern space) but with number of pixels
643 // Render pattern.
645 dc.pushGroup(); // this group is for pattern + opacity
665 // std::cout << " cairo_surface (sp-pattern): "
669 // std::string filename = "sp-pattern-" + (std::string)getId() + ".png";
673 dc.popGroupToSource(); // pop raw pattern