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

Function renderPolygonGD

mapgd.c:373–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373int renderPolygonGD(imageObj *img, shapeObj *p, colorObj *color)
374{
375 gdImagePtr ip;
376
377 if(!img || !p || !color) return MS_FAILURE;
378 if(!(ip = MS_IMAGE_GET_GDIMAGEPTR(img))) return MS_FAILURE;
379 SETPEN(ip, color);
380 imageFilledPolygon(ip, p, color->pen);
381 return MS_SUCCESS;
382}
383
384int renderGlyphsLineGD(imageObj *img, labelPathObj *labelpath, labelStyleObj *style, char *text) {
385 return MS_SUCCESS;

Callers

nothing calls this directly

Calls 1

imageFilledPolygonFunction · 0.85

Tested by

no test coverage detected