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

Function renderPolygonTiledGD

mapgd.c:754–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754int renderPolygonTiledGD(imageObj *img, shapeObj *p, imageObj *tile)
755{
756 gdImagePtr ip, tp;
757
758 if(!img || !p || !tile) return MS_FAILURE;
759 if(!(ip = MS_IMAGE_GET_GDIMAGEPTR(img))) return MS_FAILURE;
760 if(!(tp = MS_IMAGE_GET_GDIMAGEPTR(tile))) return MS_FAILURE;
761 gdImageColorTransparent(tp,0);
762 gdImageSetTile(ip, tp);
763 imageFilledPolygon(ip, p, gdTiled);
764 return MS_SUCCESS;
765}
766
767
768int initializeRasterBufferGD(rasterBufferObj *rb, int width, int height, int mode) {

Callers

nothing calls this directly

Calls 1

imageFilledPolygonFunction · 0.85

Tested by

no test coverage detected