MCPcopy Index your code
hub / github.com/MapServer/MapServer / drawRectangle

Function drawRectangle

mapchart.c:111–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void drawRectangle(mapObj *map, imageObj *image, float mx, float my, float Mx, float My,
112 styleObj *style) {
113 shapeObj shape;
114 lineObj line;
115 pointObj point[5];
116 line.point = point;
117 line.numpoints = 5;
118 shape.line = &line;
119 shape.numlines = 1;
120
121 point[0].x = point[4].x = point[3].x = mx;
122 point[0].y = point[4].y = point[1].y = my;
123 point[1].x = point[2].x = Mx;
124 point[2].y = point[3].y = My;
125
126 msDrawShadeSymbol(&map->symbolset,image,&shape,style,1.0);
127}
128
129int msDrawVBarChart(mapObj *map, imageObj *image, pointObj *center,
130 float *values, styleObj **styles, int numvalues,

Callers 2

msDrawVBarChartFunction · 0.85
msDrawBarChartFunction · 0.85

Calls 1

msDrawShadeSymbolFunction · 0.85

Tested by

no test coverage detected