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

Method profile

renderers/agg/src/agg_line_profile_aa.cpp:43–52  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

41
42 //---------------------------------------------------------------------
43 line_profile_aa::value_type* line_profile_aa::profile(double w)
44 {
45 m_subpixel_width = uround(w * subpixel_scale);
46 unsigned size = m_subpixel_width + subpixel_scale * 6;
47 if(size > m_profile.size())
48 {
49 m_profile.resize(size);
50 }
51 return &m_profile[0];
52 }
53
54
55 //---------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

uroundFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected