MCPcopy Create free account
hub / github.com/MapServer/MapServer / parse_scale

Method parse_scale

renderers/agg/src/agg_svg_parser.cpp:853–861  ·  view source on GitHub ↗

-------------------------------------------------------------

Source from the content-addressed store, hash-verified

851
852 //-------------------------------------------------------------
853 unsigned parser::parse_scale(const char* str)
854 {
855 double args[2];
856 unsigned na = 0;
857 unsigned len = parse_transform_args(str, args, 2, &na);
858 if(na == 1) args[1] = args[0];
859 m_path.transform().premultiply(trans_affine_scaling(args[0], args[1]));
860 return len;
861 }
862
863 //-------------------------------------------------------------
864 unsigned parser::parse_skew_x(const char* str)

Callers

nothing calls this directly

Calls 4

parse_transform_argsFunction · 0.85
premultiplyMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected